diff --git a/src/utils.rs b/src/utils.rs index a719525d4d92..4b8ceadbf20c 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -15,7 +15,7 @@ use syntax::ast::{self, Attribute, MetaItem, MetaItemKind, NestedMetaItem, Neste Path, Visibility}; use syntax::codemap::{BytePos, Span, NO_EXPANSION}; -use rewrite::{Rewrite, RewriteContext}; +use rewrite::RewriteContext; use shape::Shape; // When we get scoped annotations, we should have rustfmt::skip. @@ -425,12 +425,6 @@ pub fn wrap_str>(s: S, max_width: usize, shape: Shape) -> Option Option { - wrap_str(self, context.config.max_width(), shape).map(ToOwned::to_owned) - } -} - #[inline] pub fn colon_spaces(before: bool, after: bool) -> &'static str { match (before, after) {