Skip to content

Commit e439bc8

Browse files
committed
Allow bare trait object
1 parent 12629ef commit e439bc8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,8 @@ impl Error for GlobError {
298298
self.error.description()
299299
}
300300

301-
fn cause(&self) -> Option<&dyn Error> {
301+
#[allow(unknown_lints, bare_trait_objects)]
302+
fn cause(&self) -> Option<&Error> {
302303
Some(&self.error)
303304
}
304305
}

0 commit comments

Comments
 (0)