Skip to content

Commit a9f69da

Browse files
committed
Remove unnecessary clone in format! call
1 parent 2d5a3a1 commit a9f69da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

objdiff-core/src/obj/read.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ fn add_section_symbols(sections: &[Section], symbols: &mut Vec<Symbol>) {
145145
// section to begin with.
146146
format!("[{}-0]", section.name)
147147
} else {
148-
format!("[{}]", section.id.clone())
148+
format!("[{}]", section.id)
149149
};
150150

151151
// `section.size` can include extra padding, so instead prefer using the address that the

0 commit comments

Comments
 (0)