Skip to content

Commit 5588f27

Browse files
committed
Cargo Check and Format Fixes
1 parent 857b308 commit 5588f27

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

objdiff-core/src/arch/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ impl DataType {
185185
}
186186

187187
for (encoding, encoding_name) in SUPPORTED_ENCODINGS {
188-
let (cow, _, had_errors) = encoding.decode(&bytes);
188+
let (cow, _, had_errors) = encoding.decode(bytes);
189189
// Avoid showing ASCII-only strings more than once if the encoding is ASCII-compatible.
190190
if !had_errors && (!encoding.is_ascii_compatible() || !cow.is_ascii()) {
191191
let mut string = format!("{cow}");

objdiff-core/src/arch/ppc/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,9 @@ impl Arch for ArchPpc {
355355
}
356356

357357
fn guess_data_type(&self, resolved: ResolvedInstructionRef, bytes: &[u8]) -> Option<DataType> {
358-
if resolved.relocation.is_some_and(|r| r.symbol.name.starts_with("@stringBase") || r.symbol.name.starts_with("$SG")) {
358+
if resolved.relocation.is_some_and(|r| {
359+
r.symbol.name.starts_with("@stringBase") || r.symbol.name.starts_with("$SG")
360+
}) {
359361
// Pooled string.
360362
return Some(DataType::String);
361363
}

0 commit comments

Comments
 (0)