Skip to main content

Lint clippy::similar_names

warning clippy::similar_names §

binding's name is too similar to existing binding

src/render/suggestions.rs:210:17

Clippy · Category: pedantic · cargo-clippy-html

Official Clippy documentation

Targets (1)
  • cargo-clippy-html (bin)

Primary: src/render/suggestions.rs:210:17

            let path = temp.path().join(name);

Primary: src/render/suggestions.rs:207:14

    fn apply(patch: &str, files: &[(&str, &str, &str)]) {

note: existing binding defined here

help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.100.0/index.html#similar_names

note: `-W clippy::similar-names` implied by `-W clippy::pedantic`

help: to override `-W clippy::pedantic` add `#[allow(clippy::similar_names)]`

Rendered diagnostic (text)
warning: binding's name is too similar to existing binding
   --> src/render/suggestions.rs:210:17
    |
210 |             let path = temp.path().join(name);
    |                 ^^^^
    |
note: existing binding defined here
   --> src/render/suggestions.rs:207:14
    |
207 |     fn apply(patch: &str, files: &[(&str, &str, &str)]) {
    |              ^^^^^
    = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.100.0/index.html#similar_names
    = note: `-W clippy::similar-names` implied by `-W clippy::pedantic`
    = help: to override `-W clippy::pedantic` add `#[allow(clippy::similar_names)]`

warning clippy::similar_names §

binding's name is too similar to existing binding

src/render/suggestions.rs:269:17

Clippy · Category: pedantic · cargo-clippy-html

Official Clippy documentation

Targets (1)
  • cargo-clippy-html (bin)

Primary: src/render/suggestions.rs:269:17

            let patch = build_patch(&s, &BTreeMap::from([(path, source(before))]), root).unwrap();

Primary: src/render/suggestions.rs:266:17

            let path = root.join("test.rs");

note: existing binding defined here

help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.100.0/index.html#similar_names

Rendered diagnostic (text)
warning: binding's name is too similar to existing binding
   --> src/render/suggestions.rs:269:17
    |
269 |             let patch = build_patch(&s, &BTreeMap::from([(path, source(before))]), root).unwrap();
    |                 ^^^^^
    |
note: existing binding defined here
   --> src/render/suggestions.rs:266:17
    |
266 |             let path = root.join("test.rs");
    |                 ^^^^
    = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.100.0/index.html#similar_names

warning clippy::similar_names §

binding's name is too similar to existing binding

src/render/suggestions.rs:334:13

Clippy · Category: pedantic · cargo-clippy-html

Official Clippy documentation

Targets (1)
  • cargo-clippy-html (bin)

Primary: src/render/suggestions.rs:334:13

        let patch = build_patch(&s, &BTreeMap::from([(path, source(&before))]), root).unwrap();

Primary: src/render/suggestions.rs:323:13

        let path = root.join("a.rs");

note: existing binding defined here

help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.100.0/index.html#similar_names

Rendered diagnostic (text)
warning: binding's name is too similar to existing binding
   --> src/render/suggestions.rs:334:13
    |
334 |         let patch = build_patch(&s, &BTreeMap::from([(path, source(&before))]), root).unwrap();
    |             ^^^^^
    |
note: existing binding defined here
   --> src/render/suggestions.rs:323:13
    |
323 |         let path = root.join("a.rs");
    |             ^^^^
    = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.100.0/index.html#similar_names