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 01056c5 commit f2ab16eCopy full SHA for f2ab16e
tests/ui/redundant_as_str.fixed
@@ -3,4 +3,7 @@
3
fn main() {
4
let _redundant = "Hello, world!".to_owned().as_bytes();
5
let _redundant = "Hello, world!".to_owned().is_empty();
6
+
7
+ let _ok = "Hello, world!".to_owned().as_bytes();
8
+ let _ok = "Hello, world!".to_owned().is_empty();
9
}
tests/ui/redundant_as_str.rs
let _redundant = "Hello, world!".to_owned().as_str().as_bytes();
let _redundant = "Hello, world!".to_owned().as_str().is_empty();
0 commit comments