Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
warning: stripping a prefix manually --> src/ident_fragment.rs:53:31 | 53 | fmt::Display::fmt(&id[2..], f) | ^^^^^^^^ | note: the prefix was tested here --> src/ident_fragment.rs:52:9 | 52 | if id.starts_with("r#") { | ^^^^^^^^^^^^^^^^^^^^^^^^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_strip = note: `-W clippy::manual-strip` implied by `-W clippy::all` help: try using the `strip_prefix` method | 52 ~ if let Some(<stripped>) = id.strip_prefix("r#") { 53 ~ fmt::Display::fmt(<stripped>, f) | warning: stripping a prefix manually --> src/runtime.rs:447:24 | 447 | Ident::new_raw(&id[2..], span) | ^^^^^^^^ | note: the prefix was tested here --> src/runtime.rs:446:5 | 446 | if id.starts_with("r#") { | ^^^^^^^^^^^^^^^^^^^^^^^^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_strip help: try using the `strip_prefix` method | 446 ~ if let Some(<stripped>) = id.strip_prefix("r#") { 447 ~ Ident::new_raw(<stripped>, span) |
- Loading branch information