Merge commit 'e181011378' into clippyup

This commit is contained in:
flip1995 2021-11-04 12:52:36 +00:00
commit 4d6c2cce0a
No known key found for this signature in database
GPG key ID: 1CA0DF2AF59D68A5
220 changed files with 3219 additions and 1550 deletions

View file

@ -0,0 +1,10 @@
#[warn(clippy::string_slice)]
#[allow(clippy::no_effect)]
fn main() {
&"Ölkanne"[1..];
let m = "Mötörhead";
&m[2..5];
let s = String::from(m);
&s[0..2];
}