clippy 0.0.211

A bunch of helpful lints to avoid common pitfalls in Rust
1
2
3
4
5
6
7
8
9
10
11
12
13
#[allow(dead_code)]
struct Ice {
    size: String
}

impl<'a> From<String> for Ice {
    fn from(_: String) -> Self {
        let text = || "iceberg".to_string();
        Self { size: text() }
    }
}

fn main() {}