fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
753 B17 linesraw
1error: this `as_str` is redundant and can be removed as the method immediately following exists on `String` too
2  --> $DIR/redundant_as_str.rs:7:29
3   |
4LL |     let _redundant = string.as_str().as_bytes();
5   |                             ^^^^^^^^^^^^^^^^^ help: try: `as_bytes`
6   |
7   = note: `-D clippy::redundant-as-str` implied by `-D warnings`
8   = help: to override `-D warnings` add `#[allow(clippy::redundant_as_str)]`
9
10error: this `as_str` is redundant and can be removed as the method immediately following exists on `String` too
11  --> $DIR/redundant_as_str.rs:8:29
12   |
13LL |     let _redundant = string.as_str().is_empty();
14   |                             ^^^^^^^^^^^^^^^^^ help: try: `is_empty`
15
16error: aborting due to 2 previous errors
17