Merge pull request #14 from jeanthom/lcd-driver-sgs #11
Annotations
11 warnings
this `impl` can be derived:
clicky-core/src/devices/platform/pp/intcon.rs#L54
warning: this `impl` can be derived
--> clicky-core/src/devices/platform/pp/intcon.rs:54:1
|
54 | / impl Default for IrqKind {
55 | | fn default() -> IrqKind {
56 | | IrqKind::Unregistered
57 | | }
58 | | }
| |_^
|
= 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...
|
44 + #[derive(Default)]
45 | enum IrqKind {
|
help: ...and mark the default variant
|
45 ~ #[default]
46 ~ Unregistered,
|
|
unneeded `return` statement:
clicky-core/src/devices/platform/pp/flash.rs#L113
warning: unneeded `return` statement
--> clicky-core/src/devices/platform/pp/flash.rs:113:18
|
113 | _ => return Err(Unimplemented)
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
= note: `#[warn(clippy::needless_return)]` on by default
help: remove `return`
|
113 | _ => Err(Unimplemented)
| ~~~~~~~~~~~~~~~~~~
|
this block may be rewritten with the `?` operator:
clicky-core/src/devices/generic/ide/mod.rs#L610
warning: this block may be rewritten with the `?` operator
--> clicky-core/src/devices/generic/ide/mod.rs:610:21
|
610 | / if let Err(e) = self.blockdev.seek(io::SeekFrom::Start(offset * 512)).await {
611 | | // XXX: actually set error bits
612 | | return Err(e);
613 | | }
| |_____________________^ help: replace it with: `self.blockdev.seek(io::SeekFrom::Start(offset * 512)).await?;`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#question_mark
|
this block may be rewritten with the `?` operator:
clicky-core/src/devices/generic/ide/mod.rs#L529
warning: this block may be rewritten with the `?` operator
--> clicky-core/src/devices/generic/ide/mod.rs:529:21
|
529 | / if let Err(e) = self.blockdev.read_exact(self.iobuf.as_raw()).await {
530 | | // XXX: actually set error bits
531 | | return Err(e);
532 | | }
| |_____________________^ help: replace it with: `self.blockdev.read_exact(self.iobuf.as_raw()).await?;`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#question_mark
|
this block may be rewritten with the `?` operator:
clicky-core/src/devices/generic/ide/mod.rs#L521
warning: this block may be rewritten with the `?` operator
--> clicky-core/src/devices/generic/ide/mod.rs:521:21
|
521 | / if let Err(e) = self.blockdev.seek(io::SeekFrom::Start(offset * 512)).await {
522 | | // XXX: actually set error bits
523 | | return Err(e);
524 | | }
| |_____________________^ help: replace it with: `self.blockdev.seek(io::SeekFrom::Start(offset * 512)).await?;`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#question_mark
|
this block may be rewritten with the `?` operator:
clicky-core/src/devices/generic/ide/mod.rs#L386
warning: this block may be rewritten with the `?` operator
--> clicky-core/src/devices/generic/ide/mod.rs:386:17
|
386 | / if let Err(e) = self.blockdev.write_all(self.iobuf.as_raw()).await {
387 | | // XXX: actually set error bits
388 | | return Err(e);
389 | | }
| |_________________^ help: replace it with: `self.blockdev.write_all(self.iobuf.as_raw()).await?;`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#question_mark
|
this block may be rewritten with the `?` operator:
clicky-core/src/devices/generic/ide/mod.rs#L334
warning: this block may be rewritten with the `?` operator
--> clicky-core/src/devices/generic/ide/mod.rs:334:21
|
334 | / if let Err(e) = self.blockdev.read_exact(self.iobuf.as_raw()).await {
335 | | // XXX: actually set error bits
336 | | return Err(e);
337 | | }
| |_____________________^ help: replace it with: `self.blockdev.read_exact(self.iobuf.as_raw()).await?;`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#question_mark
= note: `#[warn(clippy::question_mark)]` on by default
|
casting to the same type is unnecessary (`u64` -> `u64`):
clicky-core/src/devices/generic/ide/mod.rs#L289
warning: casting to the same type is unnecessary (`u64` -> `u64`)
--> clicky-core/src/devices/generic/ide/mod.rs:289:13
|
289 | ((cyl * NUM_HEADS as u64 + head) * NUM_SECTORS as u64 + sector) as u64
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `((cyl * NUM_HEADS as u64 + head) * NUM_SECTORS as u64 + sector)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
|
casting to the same type is unnecessary (`u32` -> `u32`):
clicky-core/src/devices/generic/asanram.rs#L70
warning: casting to the same type is unnecessary (`u32` -> `u32`)
--> clicky-core/src/devices/generic/asanram.rs:70:28
|
70 | stub_val: Some(stub as u32),
| ^^^^^^^^^^^ help: try: `stub`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
= note: `#[warn(clippy::unnecessary_cast)]` on by default
|
clippy_check (clicky-core)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions-rs/clippy-check@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
clippy_check (clicky-core)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|