You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
warning: you should consider deriving a `Default` implementation for `access_ports::memory_ap::mock::MockMemoryAP`
--> coresight/src/access_ports/memory_ap/mock.rs:25:5
|
25 | / pub fn new() -> Self {
26 | | let mut store = HashMap::new();
27 | | store.insert((CSW::ADDRESS, CSW::APBANKSEL), 0);
28 | | store.insert((TAR::ADDRESS, TAR::APBANKSEL), 0);
... |
33 | | }
34 | | }
| |_____^
|
= note: #[warn(clippy::new_without_default_derive)] on by default
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default_derive
help: try this
|
13 | #[derive(Default)]
|
suggested from clippy, which is imo plain wrong.
The automatically derived function would not do the same as it would not insert anything into the hasmap or initialize a 256 elements sized vector:
I get
suggested from clippy, which is imo plain wrong.
The automatically derived function would not do the same as it would not insert anything into the hasmap or initialize a 256 elements sized vector:
This happens with clippy installed through rustup on
stable-x86_64-unknown-linux-gnu unchanged - rustc 1.32.0 (9fda7c223 2019-01-16)
Trying to update clippy tells me
info: component 'clippy' for target 'x86_64-unknown-linux-gnu' is up to date
The text was updated successfully, but these errors were encountered: