rust/clippy_lints
sinkuu f1b0b774e7 Support non-moving usages at match
This `match` is not moving the `String`:

```rust
fn foo(x: Option<String>) -> i32 {
    match x {
        Some(_) => 1,
        None => 2,
    }
}
```

With this change, it will be linted and suggested to add `*` to deref it.

```rust
fn foo(x: &Option<String>) -> i32 {
    match *x {
        Some(_) => 1,
        None => 2,
    }
}
```
2017-02-20 16:45:37 +09:00
..
src Support non-moving usages at match 2017-02-20 16:45:37 +09:00
Cargo.toml rustup and compile-fail -> ui test move 2017-02-07 21:05:30 +01:00
README.md Add a README for clippy_lints 2016-05-28 16:51:21 +02:00

This crate contains Clippy lints. For the main crate, check cargo.io or GitHub.