This repository has been archived by the owner on Jul 25, 2024. It is now read-only.
chore: release (#21) #21
check.yml
on: push
check
/
...
/
fmt
6s
check
/
...
/
doc
19s
check
/
...
/
check
21s
Matrix: check / clippy
Annotations
8 warnings
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
|