Skip to content

zedkipp/rustembed-clippy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Short example to reproduce rust-embed clippy warning on same_name_method.

From the repo root:

$ cargo clippy -- -W clippy::same_name_method Checking rustembed-clippy v0.1.0 (/home/Documents/src/rustembed-clippy) warning: method's name is the same as an existing method in a trait --> src/main.rs:3:10 | 3 | #[derive(RustEmbed)] | ^^^^^^^^^ | note: existing `get` defined here --> src/main.rs:3:10 | 3 | #[derive(RustEmbed)] | ^^^^^^^^^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#same_name_method = note: requested on the command line with `-W clippy::same-name-method` = note: this warning originates in the derive macro `RustEmbed` (in Nightly builds, run with -Z macro-backtrace for more info) warning: `rustembed-clippy` (bin "rustembed-clippy") generated 1 warning Finished dev [unoptimized + debuginfo] target(s) in 0.17s 

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages