Fix typo in example README (#67) #197
clippy
37 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 37 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.74.0-nightly (ca2b74f1a 2023-09-14)
- cargo 1.74.0-nightly (2fc85d15a 2023-09-09)
- clippy 0.1.74 (ca2b74f 2023-09-14)
Annotations
Check warning on line 586 in datacake-eventual-consistency/src/lib.rs
github-actions / clippy
use of `default` to create a unit struct
warning: use of `default` to create a unit struct
--> datacake-eventual-consistency/src/lib.rs:586:38
|
586 | _marker: PhantomData::<S>::default(),
| ^^^^^^^^^^^ help: remove this call to `default`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#default_constructed_unit_structs
Check warning on line 529 in datacake-eventual-consistency/src/lib.rs
github-actions / clippy
use of `default` to create a unit struct
warning: use of `default` to create a unit struct
--> datacake-eventual-consistency/src/lib.rs:529:38
|
529 | _marker: PhantomData::<S>::default(),
| ^^^^^^^^^^^ help: remove this call to `default`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#default_constructed_unit_structs
Check warning on line 469 in datacake-eventual-consistency/src/lib.rs
github-actions / clippy
use of `default` to create a unit struct
warning: use of `default` to create a unit struct
--> datacake-eventual-consistency/src/lib.rs:469:38
|
469 | _marker: PhantomData::<S>::default(),
| ^^^^^^^^^^^ help: remove this call to `default`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#default_constructed_unit_structs
Check warning on line 404 in datacake-eventual-consistency/src/lib.rs
github-actions / clippy
use of `default` to create a unit struct
warning: use of `default` to create a unit struct
--> datacake-eventual-consistency/src/lib.rs:404:38
|
404 | _marker: PhantomData::<S>::default(),
| ^^^^^^^^^^^ help: remove this call to `default`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#default_constructed_unit_structs
Check warning on line 274 in datacake-eventual-consistency/src/rpc/services/replication_impl.rs
github-actions / clippy
use of `default` to create a unit struct
warning: use of `default` to create a unit struct
--> datacake-eventual-consistency/src/rpc/services/replication_impl.rs:274:49
|
274 | _marker: PhantomData::<MemStore>::default(),
| ^^^^^^^^^^^ help: remove this call to `default`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#default_constructed_unit_structs
Check warning on line 228 in datacake-eventual-consistency/src/rpc/services/replication_impl.rs
github-actions / clippy
use of `default` to create a unit struct
warning: use of `default` to create a unit struct
--> datacake-eventual-consistency/src/rpc/services/replication_impl.rs:228:49
|
228 | _marker: PhantomData::<MemStore>::default(),
| ^^^^^^^^^^^ help: remove this call to `default`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#default_constructed_unit_structs
Check warning on line 218 in datacake-eventual-consistency/src/rpc/services/consistency_impl.rs
github-actions / clippy
use of `default` to create a unit struct
warning: use of `default` to create a unit struct
--> datacake-eventual-consistency/src/rpc/services/consistency_impl.rs:218:42
|
218 | _marker: PhantomData::<S>::default(),
| ^^^^^^^^^^^ help: remove this call to `default`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#default_constructed_unit_structs
Check warning on line 204 in datacake-eventual-consistency/src/rpc/services/consistency_impl.rs
github-actions / clippy
use of `default` to create a unit struct
warning: use of `default` to create a unit struct
--> datacake-eventual-consistency/src/rpc/services/consistency_impl.rs:204:42
|
204 | _marker: PhantomData::<S>::default(),
| ^^^^^^^^^^^ help: remove this call to `default`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#default_constructed_unit_structs
Check warning on line 176 in datacake-eventual-consistency/src/rpc/services/consistency_impl.rs
github-actions / clippy
use of `default` to create a unit struct
warning: use of `default` to create a unit struct
--> datacake-eventual-consistency/src/rpc/services/consistency_impl.rs:176:38
|
176 | _marker: PhantomData::<S>::default(),
| ^^^^^^^^^^^ help: remove this call to `default`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#default_constructed_unit_structs
Check warning on line 149 in datacake-eventual-consistency/src/rpc/services/consistency_impl.rs
github-actions / clippy
use of `default` to create a unit struct
warning: use of `default` to create a unit struct
--> datacake-eventual-consistency/src/rpc/services/consistency_impl.rs:149:38
|
149 | _marker: PhantomData::<S>::default(),
| ^^^^^^^^^^^ help: remove this call to `default`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#default_constructed_unit_structs
Check warning on line 122 in datacake-eventual-consistency/src/rpc/services/consistency_impl.rs
github-actions / clippy
use of `default` to create a unit struct
warning: use of `default` to create a unit struct
--> datacake-eventual-consistency/src/rpc/services/consistency_impl.rs:122:38
|
122 | _marker: PhantomData::<S>::default(),
| ^^^^^^^^^^^ help: remove this call to `default`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#default_constructed_unit_structs
Check warning on line 93 in datacake-eventual-consistency/src/rpc/services/consistency_impl.rs
github-actions / clippy
use of `default` to create a unit struct
warning: use of `default` to create a unit struct
--> datacake-eventual-consistency/src/rpc/services/consistency_impl.rs:93:38
|
93 | _marker: PhantomData::<S>::default(),
| ^^^^^^^^^^^ help: remove this call to `default`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#default_constructed_unit_structs
Check warning on line 513 in datacake-eventual-consistency/src/replication/poller.rs
github-actions / clippy
use of `default` to create a unit struct
warning: use of `default` to create a unit struct
--> datacake-eventual-consistency/src/replication/poller.rs:513:34
|
513 | _marker: PhantomData::<S>::default(),
| ^^^^^^^^^^^ help: remove this call to `default`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#default_constructed_unit_structs
Check warning on line 504 in datacake-eventual-consistency/src/replication/poller.rs
github-actions / clippy
use of `default` to create a unit struct
warning: use of `default` to create a unit struct
--> datacake-eventual-consistency/src/replication/poller.rs:504:38
|
504 | _marker: PhantomData::<S>::default(),
| ^^^^^^^^^^^ help: remove this call to `default`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#default_constructed_unit_structs
Check warning on line 471 in datacake-eventual-consistency/src/replication/poller.rs
github-actions / clippy
use of `default` to create a unit struct
warning: use of `default` to create a unit struct
--> datacake-eventual-consistency/src/replication/poller.rs:471:38
|
471 | _marker: PhantomData::<S>::default(),
| ^^^^^^^^^^^ help: remove this call to `default`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#default_constructed_unit_structs
Check warning on line 254 in datacake-eventual-consistency/src/keyspace/group.rs
github-actions / clippy
use of `default` to create a unit struct
warning: use of `default` to create a unit struct
--> datacake-eventual-consistency/src/keyspace/group.rs:254:69
|
254 | if let Err(e) = state.send(PurgeDeletes(PhantomData::<S>::default())).await {
| ^^^^^^^^^^^ help: remove this call to `default`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#default_constructed_unit_structs
= note: `#[warn(clippy::default_constructed_unit_structs)]` on by default
Check warning on line 151 in datacake-node/src/lib.rs
github-actions / clippy
use of `default` to create a unit struct
warning: use of `default` to create a unit struct
--> datacake-node/src/lib.rs:151:43
|
151 | node_selector: DCAwareSelector::default(),
| ^^^^^^^^^^^ help: remove this call to `default`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#default_constructed_unit_structs
Check warning on line 544 in datacake-node/src/nodes_selector.rs
github-actions / clippy
use of `default` to create a unit struct
warning: use of `default` to create a unit struct
--> datacake-node/src/nodes_selector.rs:544:43
|
544 | let mut selector = DCAwareSelector::default();
| ^^^^^^^^^^^ help: remove this call to `default`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#default_constructed_unit_structs
= note: `#[warn(clippy::default_constructed_unit_structs)]` on by default
Check warning on line 29 in datacake-rpc/src/rkyv_tooling/scratch.rs
github-actions / clippy
this `impl` can be derived
warning: this `impl` can be derived
--> datacake-rpc/src/rkyv_tooling/scratch.rs:21:1
|
21 | / impl Default for LazyScratch {
22 | | fn default() -> Self {
23 | | Self {
24 | | stack_scratch: StackScratch::default(),
... |
28 | | }
29 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
= note: `#[warn(clippy::derivable_impls)]` on by default
= help: remove the manual implementation...
help: ...and instead derive it
|
15 + #[derive(Default)]
16 | pub struct LazyScratch {
|
Check warning on line 119 in datacake-rpc/src/handler.rs
github-actions / clippy
use of `default` to create a unit struct
warning: use of `default` to create a unit struct
--> datacake-rpc/src/handler.rs:119:37
|
119 | _msg: PhantomData::<Msg>::default(),
| ^^^^^^^^^^^ help: remove this call to `default`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#default_constructed_unit_structs
= note: `#[warn(clippy::default_constructed_unit_structs)]` on by default
Check warning on line 586 in datacake-eventual-consistency/src/lib.rs
github-actions / clippy
use of `default` to create a unit struct
warning: use of `default` to create a unit struct
--> datacake-eventual-consistency/src/lib.rs:586:38
|
586 | _marker: PhantomData::<S>::default(),
| ^^^^^^^^^^^ help: remove this call to `default`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#default_constructed_unit_structs
Check warning on line 529 in datacake-eventual-consistency/src/lib.rs
github-actions / clippy
use of `default` to create a unit struct
warning: use of `default` to create a unit struct
--> datacake-eventual-consistency/src/lib.rs:529:38
|
529 | _marker: PhantomData::<S>::default(),
| ^^^^^^^^^^^ help: remove this call to `default`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#default_constructed_unit_structs
Check warning on line 469 in datacake-eventual-consistency/src/lib.rs
github-actions / clippy
use of `default` to create a unit struct
warning: use of `default` to create a unit struct
--> datacake-eventual-consistency/src/lib.rs:469:38
|
469 | _marker: PhantomData::<S>::default(),
| ^^^^^^^^^^^ help: remove this call to `default`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#default_constructed_unit_structs
Check warning on line 404 in datacake-eventual-consistency/src/lib.rs
github-actions / clippy
use of `default` to create a unit struct
warning: use of `default` to create a unit struct
--> datacake-eventual-consistency/src/lib.rs:404:38
|
404 | _marker: PhantomData::<S>::default(),
| ^^^^^^^^^^^ help: remove this call to `default`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#default_constructed_unit_structs
Check warning on line 218 in datacake-eventual-consistency/src/rpc/services/consistency_impl.rs
github-actions / clippy
use of `default` to create a unit struct
warning: use of `default` to create a unit struct
--> datacake-eventual-consistency/src/rpc/services/consistency_impl.rs:218:42
|
218 | _marker: PhantomData::<S>::default(),
| ^^^^^^^^^^^ help: remove this call to `default`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#default_constructed_unit_structs