Skip to content

Commit e36bb3a

Browse files
committed
Obey clippy::inefficient_to_string in tests too
1 parent da75ee9 commit e36bb3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tyrga-lib/src/mangling.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ pub fn mangle(name : impl IntoIterator<Item = u8>) -> String {
135135
fn test_demangle() -> ManglingResult<()> {
136136
for (unmangled, mangled) in MANGLE_LIST {
137137
let got : Vec<u8> = demangle(mangled)?;
138-
let want : Vec<u8> = unmangled.to_string().into();
138+
let want : Vec<u8> = (*unmangled).to_string().into();
139139
assert_eq!(want, got);
140140
}
141141

0 commit comments

Comments
 (0)