From 467b1ad9a44146e98fd86f6b0450c16d7b42468f Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Fri, 19 Dec 2014 14:41:00 +0530 Subject: [PATCH] rustup --- src/misc.rs | 4 ++-- src/types.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/misc.rs b/src/misc.rs index 2a77ecc34..681959949 100644 --- a/src/misc.rs +++ b/src/misc.rs @@ -13,7 +13,7 @@ pub struct MiscPass; 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 { @@ -47,7 +47,7 @@ impl LintPass for MiscPass { } -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; diff --git a/src/types.rs b/src/types.rs index c3fd333a5..c418fdb7f 100644 --- a/src/types.rs +++ b/src/types.rs @@ -10,9 +10,9 @@ use syntax::codemap::Span; pub struct TypePass; declare_lint!(CLIPPY_BOX_VEC, Warn, - "Warn on usage of Box>") + "Warn on usage of Box>"); 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]> {