clippy 0.0.208

A bunch of helpful lints to avoid common pitfalls in Rust
1
2
3
4
5
6
7
8
9
10
11
12
#![feature(tool_attributes)]
#![feature(stmt_expr_attributes)]

struct Outer {
    inner: u32,
}

#[deny(ref_in_deref)]
fn main() {
    let outer = Outer { inner: 0 };
    let inner = (&outer).inner;
}