Fix clippy::redundant-closure-for-method-calls
This commit is contained in:
parent
caed50b277
commit
1e4bade53a
3 changed files with 6 additions and 4 deletions
|
|
@ -5,7 +5,8 @@ clippy --workspace --no-deps -- \
|
||||||
-D clippy::semicolon_if_nothing_returned \
|
-D clippy::semicolon_if_nothing_returned \
|
||||||
-D clippy::trivially-copy-pass-by-ref \
|
-D clippy::trivially-copy-pass-by-ref \
|
||||||
-D clippy::default_trait_access \
|
-D clippy::default_trait_access \
|
||||||
-D clippy::match-wildcard-for-single-variants
|
-D clippy::match-wildcard-for-single-variants \
|
||||||
|
-D clippy::redundant-closure-for-method-calls
|
||||||
"""
|
"""
|
||||||
|
|
||||||
nitpick = """
|
nitpick = """
|
||||||
|
|
@ -28,5 +29,6 @@ clippy --workspace --no-deps -- \
|
||||||
-A clippy::module_name_repetitions \
|
-A clippy::module_name_repetitions \
|
||||||
-A clippy::if_not_else \
|
-A clippy::if_not_else \
|
||||||
-A clippy::redundant_else \
|
-A clippy::redundant_else \
|
||||||
-A clippy::used_underscore_binding
|
-A clippy::used_underscore_binding \
|
||||||
|
-A clippy::cast_possible_wrap
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
|
|
@ -511,7 +511,7 @@ impl<'a, 'b, Message, Renderer, Event, S> Drop
|
||||||
for Overlay<'a, 'b, Message, Renderer, Event, S>
|
for Overlay<'a, 'b, Message, Renderer, Event, S>
|
||||||
{
|
{
|
||||||
fn drop(&mut self) {
|
fn drop(&mut self) {
|
||||||
if let Some(heads) = self.0.take().map(|inner| inner.into_heads()) {
|
if let Some(heads) = self.0.take().map(Inner::into_heads) {
|
||||||
*heads.instance.tree.borrow_mut().borrow_mut() = Some(heads.tree);
|
*heads.instance.tree.borrow_mut().borrow_mut() = Some(heads.tree);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ pub(crate) fn information(
|
||||||
|
|
||||||
let memory_used = sysinfo::get_current_pid()
|
let memory_used = sysinfo::get_current_pid()
|
||||||
.and_then(|pid| system.process(pid).ok_or("Process not found"))
|
.and_then(|pid| system.process(pid).ok_or("Process not found"))
|
||||||
.map(|process| process.memory())
|
.map(ProcessExt::memory)
|
||||||
.ok();
|
.ok();
|
||||||
|
|
||||||
Information {
|
Information {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue