From c32fb53cf9ae20a657d17bd8e2f0b36863096583 Mon Sep 17 00:00:00 2001 From: Huon Wilson Date: Mon, 10 Jun 2013 00:44:58 +1000 Subject: std: remove str::{len, slice, is_empty} in favour of methods. --- src/libsyntax/print/pprust.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libsyntax/print') diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs index 5c81d406cd2..10fd46ea4b6 100644 --- a/src/libsyntax/print/pprust.rs +++ b/src/libsyntax/print/pprust.rs @@ -249,7 +249,7 @@ pub fn head(s: @ps, w: &str) { // outer-box is consistent cbox(s, indent_unit); // head-box is inconsistent - ibox(s, str::len(w) + 1); + ibox(s, w.len() + 1); // keyword that starts the head if !w.is_empty() { word_nbsp(s, w); -- cgit 1.4.1-3-g733a5