From 1343f4fd2b310bf08c4cf9d1ee5c7b75c977ce76 Mon Sep 17 00:00:00 2001 From: Luke Street Date: Sun, 17 Mar 2024 12:20:25 -0600 Subject: [PATCH] cargo fmt --- objdiff-core/src/arch/mod.rs | 3 +-- objdiff-core/src/arch/ppc.rs | 4 +--- objdiff-gui/src/views/config.rs | 2 +- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/objdiff-core/src/arch/mod.rs b/objdiff-core/src/arch/mod.rs index 69ef11f..dae0f8a 100644 --- a/objdiff-core/src/arch/mod.rs +++ b/objdiff-core/src/arch/mod.rs @@ -1,5 +1,4 @@ -use std::borrow::Cow; -use std::collections::BTreeMap; +use std::{borrow::Cow, collections::BTreeMap}; use anyhow::{bail, Result}; use object::{Architecture, Object, Relocation, RelocationFlags}; diff --git a/objdiff-core/src/arch/ppc.rs b/objdiff-core/src/arch/ppc.rs index 9062a20..4800604 100644 --- a/objdiff-core/src/arch/ppc.rs +++ b/objdiff-core/src/arch/ppc.rs @@ -1,5 +1,4 @@ -use std::borrow::Cow; -use std::collections::BTreeMap; +use std::{borrow::Cow, collections::BTreeMap}; use anyhow::{bail, Result}; use object::{elf, File, Relocation, RelocationFlags}; @@ -161,7 +160,6 @@ impl ObjArch for ObjArchPpc { cwdemangle::demangle(name, &Default::default()) } - fn display_reloc(&self, flags: RelocationFlags) -> Cow<'static, str> { match flags { RelocationFlags::Elf { r_type } => match r_type { diff --git a/objdiff-gui/src/views/config.rs b/objdiff-gui/src/views/config.rs index de4f541..1c5c298 100644 --- a/objdiff-gui/src/views/config.rs +++ b/objdiff-gui/src/views/config.rs @@ -16,9 +16,9 @@ use egui::{ use globset::Glob; use objdiff_core::{ config::{ProjectObject, DEFAULT_WATCH_PATTERNS}, + diff::X86Formatter, }; use self_update::cargo_crate_version; -use objdiff_core::diff::X86Formatter; use crate::{ app::{AppConfig, AppConfigRef, ObjectConfig},