From 061d84399e66dc3d47c567370b71e047202ba60f Mon Sep 17 00:00:00 2001 From: Richo Healey Date: Sat, 7 Mar 2015 18:08:48 -0800 Subject: remove uses of as_slice where deref coercions can be used --- src/libsyntax/feature_gate.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libsyntax') diff --git a/src/libsyntax/feature_gate.rs b/src/libsyntax/feature_gate.rs index 425c517cb29..c3bac0cf57c 100644 --- a/src/libsyntax/feature_gate.rs +++ b/src/libsyntax/feature_gate.rs @@ -403,11 +403,11 @@ impl<'a> Context<'a> { for the compiler"); } else { self.gate_feature("custom_attribute", attr.span, - format!("The attribute `{}` is currently \ + &format!("The attribute `{}` is currently \ unknown to the the compiler and \ may have meaning \ added to it in the future", - name).as_slice()); + name)); } } } -- cgit 1.4.1-3-g733a5