From 12af338150686d2db128636b068beb5eafd25eba Mon Sep 17 00:00:00 2001 From: Tristian Celestin Date: Sun, 26 Feb 2017 23:07:53 -0500 Subject: [PATCH] Add space between colon and type annotation Wrapped string in Rust don't require a backslash --- clippy_lints/src/drop_forget_ref.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/clippy_lints/src/drop_forget_ref.rs b/clippy_lints/src/drop_forget_ref.rs index 9424f6dbbd65..9d0201b0d090 100644 --- a/clippy_lints/src/drop_forget_ref.rs +++ b/clippy_lints/src/drop_forget_ref.rs @@ -89,13 +89,13 @@ declare_lint! { "calls to `std::mem::forget` with a value that implements Copy" } -const DROP_REF_SUMMARY:&str = "calls to `std::mem::drop` with a reference instead of an owned value. \ +const DROP_REF_SUMMARY: &str = "calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing."; -const FORGET_REF_SUMMARY:&str = "calls to `std::mem::forget` with a reference instead of an owned value. \ +const FORGET_REF_SUMMARY: &str = "calls to `std::mem::forget` with a reference instead of an owned value. Forgetting a reference does nothing."; -const DROP_COPY_SUMMARY:&str = "calls to `std::mem::drop` with a value that implements Copy. \ +const DROP_COPY_SUMMARY: &str = "calls to `std::mem::drop` with a value that implements Copy. Dropping a copy leaves the original intact."; -const FORGET_COPY_SUMMARY:&str = "calls to `std::mem::forget` with a value that implements Copy. \ +const FORGET_COPY_SUMMARY: &str = "calls to `std::mem::forget` with a value that implements Copy. Forgetting a copy leaves the original intact."; #[allow(missing_copy_implementations)]