mirror of
https://github.com/orhun/systeroid
synced 2024-07-01 07:04:20 +00:00
fix(lint): apply clippy suggestions
This commit is contained in:
parent
dd51d17b26
commit
81ec650994
|
@ -148,9 +148,9 @@ impl Sysctl {
|
||||||
.par_iter()
|
.par_iter()
|
||||||
.find_any(|param| param.name == parameter.name)
|
.find_any(|param| param.name == parameter.name)
|
||||||
{
|
{
|
||||||
parameter.description = param.description.clone();
|
parameter.description.clone_from(¶m.description);
|
||||||
parameter.docs_path = param.docs_path.clone();
|
parameter.docs_path.clone_from(¶m.docs_path);
|
||||||
parameter.docs_title = param.docs_title.clone();
|
parameter.docs_title.clone_from(¶m.docs_title);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -180,8 +180,8 @@ impl Sysctl {
|
||||||
})
|
})
|
||||||
{
|
{
|
||||||
param.description = Some(paragraph.contents.to_owned());
|
param.description = Some(paragraph.contents.to_owned());
|
||||||
param.docs_title = paragraph.title.to_owned();
|
paragraph.title.clone_into(&mut param.docs_title);
|
||||||
param.docs_path = document.path.clone();
|
param.docs_path.clone_from(&document.path);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -177,7 +177,7 @@ impl<'a> App<'a> {
|
||||||
clipboard: None,
|
clipboard: None,
|
||||||
sysctl,
|
sysctl,
|
||||||
};
|
};
|
||||||
app.parameter_list.items = app.sysctl.parameters.clone();
|
app.parameter_list.items.clone_from(&app.sysctl.parameters);
|
||||||
#[cfg(feature = "clipboard")]
|
#[cfg(feature = "clipboard")]
|
||||||
{
|
{
|
||||||
app.clipboard =
|
app.clipboard =
|
||||||
|
|
Loading…
Reference in New Issue
Block a user