This repository has been archived by the owner on Jul 25, 2024. It is now read-only.
chore(deps): bump derive-getters from 0.3.0 to 0.4.0 in the all-dependencies group #22
check.yml
on: pull_request
check
/
...
/
fmt
15s
check
/
...
/
doc
22s
check
/
...
/
check
17s
Matrix: check / clippy
Annotations
6 errors and 8 warnings
lint group `nursery` has the same priority (0) as a lint:
Cargo.toml#L25
error: lint group `nursery` has the same priority (0) as a lint
--> Cargo.toml:25:1
|
25 | nursery = "warn"
| ^^^^^^^ ------ has an implicit priority of 0
26 | unwrap_used = "warn"
| ----------- has the same priority as this lint
|
= note: the order of the lints in the table is ignored by Cargo
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#lint_groups_priority
= note: `#[deny(clippy::lint_groups_priority)]` on by default
help: to have lints override the group set `nursery` to a lower priority
|
25 | nursery = { level = "warn", priority = -1 }
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
lint group `pedantic` has the same priority (0) as a lint:
Cargo.toml#L24
error: lint group `pedantic` has the same priority (0) as a lint
--> Cargo.toml:24:1
|
24 | pedantic = "warn"
| ^^^^^^^^ ------ has an implicit priority of 0
25 | nursery = "warn"
26 | unwrap_used = "warn"
| ----------- has the same priority as this lint
|
= note: the order of the lints in the table is ignored by Cargo
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#lint_groups_priority
help: to have lints override the group set `pedantic` to a lower priority
|
24 | pedantic = { level = "warn", priority = -1 }
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
check / stable / clippy
Clippy has exited with exit code 101
|
lint group `nursery` has the same priority (0) as a lint:
Cargo.toml#L25
error: lint group `nursery` has the same priority (0) as a lint
--> Cargo.toml:25:1
|
25 | nursery = "warn"
| ^^^^^^^ ------ has an implicit priority of 0
26 | unwrap_used = "warn"
| ----------- has the same priority as this lint
|
= note: the order of the lints in the table is ignored by Cargo
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#lint_groups_priority
= note: `#[deny(clippy::lint_groups_priority)]` on by default
help: to have lints override the group set `nursery` to a lower priority
|
25 | nursery = { level = "warn", priority = -1 }
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
lint group `pedantic` has the same priority (0) as a lint:
Cargo.toml#L24
error: lint group `pedantic` has the same priority (0) as a lint
--> Cargo.toml:24:1
|
24 | pedantic = "warn"
| ^^^^^^^^ ------ has an implicit priority of 0
25 | nursery = "warn"
26 | unwrap_used = "warn"
| ----------- has the same priority as this lint
|
= note: the order of the lints in the table is ignored by Cargo
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#lint_groups_priority
help: to have lints override the group set `pedantic` to a lower priority
|
24 | pedantic = { level = "warn", priority = -1 }
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
check / beta / clippy
Clippy has exited with exit code 101
|
casting `bool` to `usize` is more cleanly stated with `usize::from(_)`:
src/widget.rs#L30
warning: casting `bool` to `usize` is more cleanly stated with `usize::from(_)`
--> src/widget.rs:30:33
|
30 | let border_height = self.borders.intersects(Borders::TOP) as usize
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `usize::from(self.borders.intersects(Borders::TOP))`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless
= note: `-W clippy::cast-lossless` implied by `-W clippy::pedantic`
= help: to override `-W clippy::pedantic` add `#[allow(clippy::cast_lossless)]`
|
casting `bool` to `usize` is more cleanly stated with `usize::from(_)`:
src/widget.rs#L31
warning: casting `bool` to `usize` is more cleanly stated with `usize::from(_)`
--> src/widget.rs:31:19
|
31 | + self.borders.intersects(Borders::BOTTOM) as usize;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `usize::from(self.borders.intersects(Borders::BOTTOM))`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless
|
casting `bool` to `usize` is more cleanly stated with `usize::from(_)`:
src/widget.rs#L32
warning: casting `bool` to `usize` is more cleanly stated with `usize::from(_)`
--> src/widget.rs:32:32
|
32 | let border_width = self.borders.intersects(Borders::LEFT) as usize
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `usize::from(self.borders.intersects(Borders::LEFT))`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless
|
casting `bool` to `usize` is more cleanly stated with `usize::from(_)`:
src/widget.rs#L33
warning: casting `bool` to `usize` is more cleanly stated with `usize::from(_)`
--> src/widget.rs:33:19
|
33 | + self.borders.intersects(Borders::RIGHT) as usize;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `usize::from(self.borders.intersects(Borders::RIGHT))`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless
|
casting `bool` to `usize` is more cleanly stated with `usize::from(_)`:
src/widget.rs#L30
warning: casting `bool` to `usize` is more cleanly stated with `usize::from(_)`
--> src/widget.rs:30:33
|
30 | let border_height = self.borders.intersects(Borders::TOP) as usize
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `usize::from(self.borders.intersects(Borders::TOP))`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless
= note: `-W clippy::cast-lossless` implied by `-W clippy::pedantic`
= help: to override `-W clippy::pedantic` add `#[allow(clippy::cast_lossless)]`
|
casting `bool` to `usize` is more cleanly stated with `usize::from(_)`:
src/widget.rs#L31
warning: casting `bool` to `usize` is more cleanly stated with `usize::from(_)`
--> src/widget.rs:31:19
|
31 | + self.borders.intersects(Borders::BOTTOM) as usize;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `usize::from(self.borders.intersects(Borders::BOTTOM))`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless
|
casting `bool` to `usize` is more cleanly stated with `usize::from(_)`:
src/widget.rs#L32
warning: casting `bool` to `usize` is more cleanly stated with `usize::from(_)`
--> src/widget.rs:32:32
|
32 | let border_width = self.borders.intersects(Borders::LEFT) as usize
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `usize::from(self.borders.intersects(Borders::LEFT))`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless
|
casting `bool` to `usize` is more cleanly stated with `usize::from(_)`:
src/widget.rs#L33
warning: casting `bool` to `usize` is more cleanly stated with `usize::from(_)`
--> src/widget.rs:33:19
|
33 | + self.borders.intersects(Borders::RIGHT) as usize;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `usize::from(self.borders.intersects(Borders::RIGHT))`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless
|