Deny bare trait objects in src/libstd
.
This commit is contained in:
parent
77117e3836
commit
560d8079ec
20 changed files with 99 additions and 98 deletions
|
@ -1972,7 +1972,7 @@ impl<T: BufRead> BufRead for Take<T> {
|
|||
}
|
||||
}
|
||||
|
||||
fn read_one_byte(reader: &mut Read) -> Option<Result<u8>> {
|
||||
fn read_one_byte(reader: &mut dyn Read) -> Option<Result<u8>> {
|
||||
let mut buf = [0];
|
||||
loop {
|
||||
return match reader.read(&mut buf) {
|
||||
|
@ -2081,7 +2081,7 @@ impl std_error::Error for CharsError {
|
|||
CharsError::Other(ref e) => std_error::Error::description(e),
|
||||
}
|
||||
}
|
||||
fn cause(&self) -> Option<&std_error::Error> {
|
||||
fn cause(&self) -> Option<&dyn std_error::Error> {
|
||||
match *self {
|
||||
CharsError::NotUtf8 => None,
|
||||
CharsError::Other(ref e) => e.cause(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue