std: remove str::{len, slice, is_empty} in favour of methods.
This commit is contained in:
parent
b29cd22bce
commit
c32fb53cf9
35 changed files with 185 additions and 207 deletions
|
|
@ -547,7 +547,7 @@ pub mod rt {
|
|||
let unpadded = match cv.precision {
|
||||
CountImplied => s,
|
||||
CountIs(max) => if (max as uint) < str::char_len(s) {
|
||||
str::slice(s, 0, max as uint)
|
||||
s.slice(0, max as uint)
|
||||
} else {
|
||||
s
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue