From 9ad815e063e8c7785cc10ea1afac55a19ea4e51a Mon Sep 17 00:00:00 2001 From: Erick Tryzelaar Date: Tue, 23 Jul 2013 16:56:17 -0700 Subject: std: rename str.as_bytes_with_null_consume to str.to_bytes_with_null --- src/libextra/terminfo/parm.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libextra') diff --git a/src/libextra/terminfo/parm.rs b/src/libextra/terminfo/parm.rs index b182a9057bd..114ab6702ae 100644 --- a/src/libextra/terminfo/parm.rs +++ b/src/libextra/terminfo/parm.rs @@ -545,7 +545,7 @@ priv fn format(val: Param, op: FormatOp, flags: Flags) -> Result<~[u8],~str> { String(s) => { match op { FormatString => { - let mut s = s.as_bytes_with_null_consume(); + let mut s = s.to_bytes_with_null(); s.pop(); // remove the null if flags.precision > 0 && flags.precision < s.len() { s.truncate(flags.precision); -- cgit 1.4.1-3-g733a5