i18n(nl) update Dutch translations #74
Merged
Annotations
10 warnings
|
src/main.rs#L425
warning: the following explicit lifetimes could be elided: 'a
--> src/pages/color_schemes.rs:425:25
|
425 | fn installed_themes<'a>(&'a self) -> Element<'a, Message> {
| ^^ ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
425 - fn installed_themes<'a>(&'a self) -> Element<'a, Message> {
425 + fn installed_themes(&self) -> Element<'_, Message> {
|
|
|
src/main.rs#L398
warning: the following explicit lifetimes could be elided: 'a
--> src/pages/color_schemes.rs:398:17
|
398 | pub fn view<'a>(&'a self) -> Element<'a, Message> {
| ^^ ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
398 - pub fn view<'a>(&'a self) -> Element<'a, Message> {
398 + pub fn view(&self) -> Element<'_, Message> {
|
|
|
src/main.rs#L95
warning: using `Option.and_then(|x| Some(y))`, which is more succinctly expressed as `map(|x| y)`
--> src/pages/color_schemes/preview.rs:95:21
|
95 | / color_scheme
96 | | .author
97 | | .as_ref()
98 | | .and_then(|author| Some(widget::text::caption(author.clone()))),
| |_______________________________________________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bind_instead_of_map
= note: `#[warn(clippy::bind_instead_of_map)]` on by default
help: try
|
95 ~ color_scheme
96 + .author
97 ~ .as_ref().map(|author| widget::text::caption(author.clone())),
|
|
|
src/main.rs#L147
warning: manual saturating arithmetic
--> src/pages/color_schemes/config.rs:147:26
|
147 | let item_width = width
| __________________________^
148 | | .checked_sub(cols_m1 * column_spacing as usize)
149 | | .unwrap_or(0)
| |_________________________^ help: consider using `saturating_sub`: `width.saturating_sub(cols_m1 * column_spacing as usize)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_saturating_arithmetic
|
|
src/main.rs#L144
warning: manual saturating arithmetic
--> src/pages/color_schemes/config.rs:144:24
|
144 | let width_m1 = width.checked_sub(min_width).unwrap_or(0);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `saturating_sub`: `width.saturating_sub(min_width)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_saturating_arithmetic
= note: `#[warn(clippy::manual_saturating_arithmetic)]` on by default
|
|
src/main.rs#L90
warning: the following explicit lifetimes could be elided: 'a
--> src/pages/color_schemes/config.rs:90:27
|
90 | pub fn available_grid<'a>(
| ^^
91 | color_schemes: &'a [Self],
| ^^
...
94 | ) -> Element<'a, super::Message> {
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
= note: `#[warn(clippy::needless_lifetimes)]` on by default
help: elide the lifetimes
|
90 ~ pub fn available_grid(
91 ~ color_schemes: &[Self],
92 | spacing: cosmic::cosmic_theme::Spacing,
93 | width: usize,
94 ~ ) -> Element<'_, super::Message> {
|
|
|
src/main.rs#L74
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/pages/color_schemes/config.rs:74:17
|
74 | &selected,
| ^^^^^^^^^ help: change this to: `selected`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
= note: `#[warn(clippy::needless_borrow)]` on by default
|
|
src/main.rs#L288
warning: this `match` expression can be replaced with `?`
--> src/app.rs:288:27
|
288 | let dialog_page = match self.dialog_pages.front() {
| ___________________________^
289 | | Some(some) => some,
290 | | None => return None,
291 | | };
| |_________^ help: try instead: `self.dialog_pages.front()?`
|
= 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
|
|
Resource not accessible by integration - https://docs.github.com/rest/checks/runs#create-a-check-run
|
|
|
The logs for this run have expired and are no longer available.
Loading