We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d5c524 commit 02acf2dCopy full SHA for 02acf2d
tyrga-lib/src/lib.rs
@@ -15,6 +15,7 @@
15
#![deny(bare_trait_objects)]
16
#![deny(unused_mut)]
17
#![deny(unused_variables)]
18
+#![deny(clippy::inefficient_to_string)]
19
20
// make macros visible to later modules
21
#[macro_use]
@@ -1171,7 +1172,8 @@ mod util {
1171
1172
}
1173
1174
impl Manglable for &str {
- fn pieces(&self) -> Vec<String> { vec![ self.to_string() ] }
1175
+ // Dereference self explicitly to get faster ToString implementation
1176
+ fn pieces(&self) -> Vec<String> { vec![ (*self).to_string() ] }
1177
1178
1179
impl Manglable for String {
0 commit comments