better parsing of battery information in status bar widget #109
book.yml
on: push
Deploy docs to GitHub Pages
53s
Annotations
12 warnings
assigning the result of `ToOwned::to_owned()` may be inefficient:
src/pure/stack_set.rs#L1196
warning: assigning the result of `ToOwned::to_owned()` may be inefficient
--> src/pure/stack_set.rs:1196:9
|
1196 | s.previous_tag = "PREVIOUS".to_owned();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_into()`: `"PREVIOUS".clone_into(&mut s.previous_tag)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assigning_clones
|
assigning the result of `ToOwned::to_owned()` may be inefficient:
src/pure/stack_set.rs#L1196
warning: assigning the result of `ToOwned::to_owned()` may be inefficient
--> src/pure/stack_set.rs:1196:9
|
1196 | s.previous_tag = "PREVIOUS".to_owned();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_into()`: `"PREVIOUS".clone_into(&mut s.previous_tag)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assigning_clones
|
assigning the result of `ToOwned::to_owned()` may be inefficient:
src/pure/stack_set.rs#L1196
warning: assigning the result of `ToOwned::to_owned()` may be inefficient
--> src/pure/stack_set.rs:1196:9
|
1196 | s.previous_tag = "PREVIOUS".to_owned();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_into()`: `"PREVIOUS".clone_into(&mut s.previous_tag)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assigning_clones
|
assigning the result of `ToOwned::to_owned()` may be inefficient:
src/pure/stack_set.rs#L1196
warning: assigning the result of `ToOwned::to_owned()` may be inefficient
--> src/pure/stack_set.rs:1196:9
|
1196 | s.previous_tag = "PREVIOUS".to_owned();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_into()`: `"PREVIOUS".clone_into(&mut s.previous_tag)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assigning_clones
|
assigning the result of `Clone::clone()` may be inefficient:
src/extensions/hooks/window_swallowing.rs#L68
warning: assigning the result of `Clone::clone()` may be inefficient
--> src/extensions/hooks/window_swallowing.rs:68:9
|
68 | state.client_set.floating = self.floating_before_close.clone();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_from()`: `state.client_set.floating.clone_from(&self.floating_before_close)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assigning_clones
|
assigning the result of `Clone::clone()` may be inefficient:
src/extensions/hooks/window_swallowing.rs#L26
warning: assigning the result of `Clone::clone()` may be inefficient
--> src/extensions/hooks/window_swallowing.rs:26:9
|
26 | self.floating_before_close = state.client_set.floating.clone();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_from()`: `self.floating_before_close.clone_from(&state.client_set.floating)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assigning_clones
= note: `#[warn(clippy::assigning_clones)]` on by default
|
you are explicitly cloning with `.map()`:
src/core/mod.rs#L141
warning: you are explicitly cloning with `.map()`
--> src/core/mod.rs:141:9
|
141 | / self.extensions
142 | | .get()
143 | | .map(Arc::clone)
| |____________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_clone
note: the lint level is defined here
--> src/lib.rs:56:5
|
56 | clippy::style,
| ^^^^^^^^^^^^^
= note: `#[warn(clippy::map_clone)]` implied by `#[warn(clippy::style)]`
help: consider calling the dedicated `cloned` method
|
141 ~ self.extensions
142 + .get().cloned()
|
|
assigning the result of `Clone::clone()` may be inefficient:
src/extensions/hooks/window_swallowing.rs#L68
warning: assigning the result of `Clone::clone()` may be inefficient
--> src/extensions/hooks/window_swallowing.rs:68:9
|
68 | state.client_set.floating = self.floating_before_close.clone();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_from()`: `state.client_set.floating.clone_from(&self.floating_before_close)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assigning_clones
|
assigning the result of `Clone::clone()` may be inefficient:
src/extensions/hooks/window_swallowing.rs#L26
warning: assigning the result of `Clone::clone()` may be inefficient
--> src/extensions/hooks/window_swallowing.rs:26:9
|
26 | self.floating_before_close = state.client_set.floating.clone();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_from()`: `self.floating_before_close.clone_from(&state.client_set.floating)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assigning_clones
= note: `#[warn(clippy::assigning_clones)]` on by default
|
you are explicitly cloning with `.map()`:
src/core/mod.rs#L141
warning: you are explicitly cloning with `.map()`
--> src/core/mod.rs:141:9
|
141 | / self.extensions
142 | | .get()
143 | | .map(Arc::clone)
| |____________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_clone
note: the lint level is defined here
--> src/lib.rs:56:5
|
56 | clippy::style,
| ^^^^^^^^^^^^^
= note: `#[warn(clippy::map_clone)]` implied by `#[warn(clippy::style)]`
help: consider calling the dedicated `cloned` method
|
141 ~ self.extensions
142 + .get().cloned()
|
|
Deploy docs to GitHub Pages
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, peaceiris/actions-mdbook@v1, peaceiris/actions-gh-pages@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Deploy docs to GitHub Pages
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|