This repository has been archived by the owner on Sep 27, 2024. It is now read-only.
chore(deps): bump rstest from 0.19.0 to 0.21.0 in the all-dependencies group #45
check.yml
on: pull_request
check
/
...
/
fmt
17s
check
/
...
/
doc
23s
check
/
...
/
check
25s
Matrix: check / clippy
Annotations
8 warnings
unneeded `return` statement:
src/scroll_view.rs#L144
warning: unneeded `return` statement
--> src/scroll_view.rs:144:17
|
144 | return Rect::new(state.offset.x, state.offset.y, area.width, area.height);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= 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`
|
144 - return Rect::new(state.offset.x, state.offset.y, area.width, area.height);
144 + Rect::new(state.offset.x, state.offset.y, area.width, area.height)
|
|
unneeded `return` statement:
src/scroll_view.rs#L150
warning: unneeded `return` statement
--> src/scroll_view.rs:150:17
|
150 | return Rect::new(state.offset.x, 0, area.width, area.height - 1);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
help: remove `return`
|
150 - return Rect::new(state.offset.x, 0, area.width, area.height - 1);
150 + Rect::new(state.offset.x, 0, area.width, area.height - 1)
|
|
unneeded `return` statement:
src/scroll_view.rs#L156
warning: unneeded `return` statement
--> src/scroll_view.rs:156:17
|
156 | return Rect::new(0, state.offset.y, area.width - 1, area.height);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
help: remove `return`
|
156 - return Rect::new(0, state.offset.y, area.width - 1, area.height);
156 + Rect::new(0, state.offset.y, area.width - 1, area.height)
|
|
unneeded `return` statement:
src/scroll_view.rs#L170
warning: unneeded `return` statement
--> src/scroll_view.rs:170:17
|
170 | / return Rect::new(
171 | | state.offset.x,
172 | | state.offset.y,
173 | | area.width - 1,
174 | | area.height - 1,
175 | | );
| |_________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
help: remove `return`
|
170 ~ Rect::new(
171 + state.offset.x,
172 + state.offset.y,
173 + area.width - 1,
174 + area.height - 1,
175 ~ )
|
|
unneeded `return` statement:
src/scroll_view.rs#L144
warning: unneeded `return` statement
--> src/scroll_view.rs:144:17
|
144 | return Rect::new(state.offset.x, state.offset.y, area.width, area.height);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= 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`
|
144 - return Rect::new(state.offset.x, state.offset.y, area.width, area.height);
144 + Rect::new(state.offset.x, state.offset.y, area.width, area.height)
|
|
unneeded `return` statement:
src/scroll_view.rs#L150
warning: unneeded `return` statement
--> src/scroll_view.rs:150:17
|
150 | return Rect::new(state.offset.x, 0, area.width, area.height - 1);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
help: remove `return`
|
150 - return Rect::new(state.offset.x, 0, area.width, area.height - 1);
150 + Rect::new(state.offset.x, 0, area.width, area.height - 1)
|
|
unneeded `return` statement:
src/scroll_view.rs#L156
warning: unneeded `return` statement
--> src/scroll_view.rs:156:17
|
156 | return Rect::new(0, state.offset.y, area.width - 1, area.height);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
help: remove `return`
|
156 - return Rect::new(0, state.offset.y, area.width - 1, area.height);
156 + Rect::new(0, state.offset.y, area.width - 1, area.height)
|
|
unneeded `return` statement:
src/scroll_view.rs#L170
warning: unneeded `return` statement
--> src/scroll_view.rs:170:17
|
170 | / return Rect::new(
171 | | state.offset.x,
172 | | state.offset.y,
173 | | area.width - 1,
174 | | area.height - 1,
175 | | );
| |_________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
help: remove `return`
|
170 ~ Rect::new(
171 + state.offset.x,
172 + state.offset.y,
173 + area.width - 1,
174 + area.height - 1,
175 ~ )
|
|