diff options
Diffstat (limited to 'src/watch/staleness.rs')
| -rw-r--r-- | src/watch/staleness.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/watch/staleness.rs b/src/watch/staleness.rs index 94813eb..6b83032 100644 --- a/src/watch/staleness.rs +++ b/src/watch/staleness.rs @@ -12,7 +12,7 @@ pub enum Kind { /// only way to reach it, and the alias is what carries the /// feature-conditional visibility. mod stale { - use super::*; + use super::Kind; #[derive(Debug, Clone)] pub struct Stale { @@ -97,9 +97,7 @@ pub fn dependents_of(db: &Db, name: &str) -> Result<Vec<String>> { continue; } let depends = match serde_json::from_str::<crate::db::model::Recipe>(&json) { - Ok(r) => crate::pkgver::dep_names(&r.depends) - .into_iter() - .any(|d| d == name), + Ok(r) => crate::pkgver::dep_names(&r.depends).into_iter().any(|d| d == name), Err(_) => true, }; if depends { |
