Apply clippy’s advices
This commit is contained in:
parent
10496f75db
commit
0eb443976f
@ -121,7 +121,7 @@ impl Updater {
|
|||||||
.collect();
|
.collect();
|
||||||
|
|
||||||
// TODO:
|
// TODO:
|
||||||
if errors.len() == 0 {
|
if errors.is_empty() {
|
||||||
Ok(())
|
Ok(())
|
||||||
} else {
|
} else {
|
||||||
Err(Error::new(
|
Err(Error::new(
|
||||||
@ -158,7 +158,7 @@ impl Updater {
|
|||||||
impl System {
|
impl System {
|
||||||
pub fn fetch(&self, opt: &Opt) -> Result<()> {
|
pub fn fetch(&self, opt: &Opt) -> Result<()> {
|
||||||
if let Some(fetch) = &self.fetch {
|
if let Some(fetch) = &self.fetch {
|
||||||
fetch.clone().prepare(opt).execute(&opt)?;
|
fetch.clone().prepare(opt).execute(opt)?;
|
||||||
}
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user