Skip to content

Commit 4ec9b1f

Browse files
style: clippy fix
1 parent 2270e80 commit 4ec9b1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/src/resource.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ mod test {
352352
];
353353

354354
for input in inputs {
355-
let actual = ResourceTypeBeta::from_str(&input.to_string()).unwrap();
355+
let actual = ResourceTypeBeta::from_str(input.as_ref()).unwrap();
356356
assert_eq!(input, actual, ":{} should map back to itself", input);
357357
}
358358
}

0 commit comments

Comments
 (0)