std: Rename the ToStr
trait to ToString
, and to_str
to to_string
.
[breaking-change]
This commit is contained in:
parent
bfe4ddfdea
commit
12c334a77b
208 changed files with 1557 additions and 1390 deletions
|
@ -8,6 +8,8 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// ignore-tidy-linelength
|
||||
|
||||
#![allow(dead_code)]
|
||||
#![deny(uppercase_variables)]
|
||||
|
||||
|
@ -30,7 +32,7 @@ fn main() {
|
|||
let mut buff = [0u8, ..16];
|
||||
match f.read(buff) {
|
||||
Ok(cnt) => println!("read this many bytes: {}", cnt),
|
||||
Err(IoError{ kind: EndOfFile, .. }) => println!("Got end of file: {}", EndOfFile.to_str()),
|
||||
Err(IoError{ kind: EndOfFile, .. }) => println!("Got end of file: {}", EndOfFile.to_string()),
|
||||
//~^ ERROR variable names should start with a lowercase character
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue