declare_lint!(CLIPPY_SINGLE_MATCH, Warn,
- "Warn on usage of matches with a single nontrivial arm")
+ "Warn on usage of matches with a single nontrivial arm");
impl LintPass for MiscPass {
fn get_lints(&self) -> LintArray {
}
-declare_lint!(CLIPPY_STR_TO_STRING, Warn, "Warn when a String could use into_string() instead of to_string()")
+declare_lint!(CLIPPY_STR_TO_STRING, Warn, "Warn when a String could use into_string() instead of to_string()");
pub struct StrToStringPass;
pub struct TypePass;
declare_lint!(CLIPPY_BOX_VEC, Warn,
- "Warn on usage of Box<Vec<T>>")
+ "Warn on usage of Box<Vec<T>>");
declare_lint!(CLIPPY_DLIST, Warn,
- "Warn on usage of DList")
+ "Warn on usage of DList");
/// Matches a type with a provided string, and returns its type parameters if successful
pub fn match_ty_unwrap<'a>(ty: &'a Ty, segments: &[&str]) -> Option<&'a [P<Ty>]> {