Skip to content

Commit 5c1454a

Browse files
committed
Run cargo fix
1 parent 7ed1351 commit 5c1454a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/reader.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ impl error::Error for ReadError {
9797
}
9898
}
9999

100-
fn cause(&self) -> Option<&error::Error> {
100+
fn cause(&self) -> Option<&dyn error::Error> {
101101
match *self {
102102
ReadError::Format(_) => None,
103103
ReadError::Io(ref err) => Some(err),

src/writer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ impl error::Error for WriteError {
5252
}
5353
}
5454

55-
fn cause(&self) -> Option<&error::Error> {
55+
fn cause(&self) -> Option<&dyn error::Error> {
5656
match *self {
5757
WriteError::ExceededMaxSize => None,
5858
WriteError::Io(ref err) => Some(err),

0 commit comments

Comments
 (0)