renderers
}
-const DEFAULT_PREPROCESSORS: &[&'static str] = &["links", "index"];
+const DEFAULT_PREPROCESSORS: &[&str] = &["links", "index"];
fn is_default_preprocessor(pre: &dyn Preprocessor) -> bool {
let name = pre.name();
let preprocessors = determine_preprocessors(&cfg).unwrap();
- assert!(preprocessors
+ assert!(!preprocessors
.iter()
- .find(|preprocessor| preprocessor.name() == "random")
- .is_none());
+ .any(|preprocessor| preprocessor.name() == "random"));
}
#[test]
let preprocessors = determine_preprocessors(&cfg).unwrap();
- assert!(preprocessors
+ assert!(!preprocessors
.iter()
- .find(|preprocessor| preprocessor.name() == "links")
- .is_none());
+ .any(|preprocessor| preprocessor.name() == "links"));
}
#[test]