Make Clippy happy
This commit is contained in:
2
Cargo.lock
generated
2
Cargo.lock
generated
@@ -1,3 +1,5 @@
|
|||||||
|
# This file is automatically @generated by Cargo.
|
||||||
|
# It is not intended for manual editing.
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "MacTypes-sys"
|
name = "MacTypes-sys"
|
||||||
version = "2.1.0"
|
version = "2.1.0"
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ pub fn self_update() -> Result<(), Error> {
|
|||||||
.no_confirm(true)
|
.no_confirm(true)
|
||||||
.build()
|
.build()
|
||||||
})
|
})
|
||||||
.and_then(|u| u.update_extended())
|
.and_then(Update::update_extended)
|
||||||
.context(ErrorKind::SelfUpdate)?;
|
.context(ErrorKind::SelfUpdate)?;
|
||||||
|
|
||||||
if let GitHubUpdateStatus::Updated(release) = &result {
|
if let GitHubUpdateStatus::Updated(release) = &result {
|
||||||
|
|||||||
@@ -100,7 +100,7 @@ pub fn run_composer_update(base_dirs: &BaseDirs, run_type: RunType) -> Result<()
|
|||||||
.check_output()
|
.check_output()
|
||||||
.map_err(|_| Error::from(ErrorKind::SkipStep))
|
.map_err(|_| Error::from(ErrorKind::SkipStep))
|
||||||
.map(PathBuf::from)
|
.map(PathBuf::from)
|
||||||
.and_then(|p| p.require())?;
|
.and_then(PathExt::require)?;
|
||||||
|
|
||||||
if !composer_home.is_descendant_of(base_dirs.home_dir()) {
|
if !composer_home.is_descendant_of(base_dirs.home_dir()) {
|
||||||
Err(ErrorKind::SkipStep)?;
|
Err(ErrorKind::SkipStep)?;
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ impl Distribution {
|
|||||||
pub fn show_pacnew() {
|
pub fn show_pacnew() {
|
||||||
let mut iter = WalkDir::new("/etc")
|
let mut iter = WalkDir::new("/etc")
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.filter_map(|e| e.ok())
|
.filter_map(Result::ok)
|
||||||
.filter(|f| {
|
.filter(|f| {
|
||||||
f.path()
|
f.path()
|
||||||
.extension()
|
.extension()
|
||||||
|
|||||||
Reference in New Issue
Block a user