profile
viewpoint

Ask questionsclippy::op_ref false positive with deref coercions

    let a = "a".to_string();
    let b = "a";

    if b < &a {
        println!("OK");
    }

This warns, but it should not, since the &a is necessary to coerce the type. We even incorrectly test for this case.

rust-lang/rust-clippy

Answer questions mikerite

Is this the same as #2597?

useful!
source:https://uonfu.com/
Github User Rank List