Skip to content

Commit 5c6f47c

Browse files
Benjamin Schulzbenschulz
authored andcommitted
Detect more cases of unused_parens around types
1 parent 795f313 commit 5c6f47c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ impl dyn Error {
347347
/// let b = B(Some(Box::new(A)));
348348
///
349349
/// // let err : Box<Error> = b.into(); // or
350-
/// let err = &b as &(dyn Error);
350+
/// let err = &b as &dyn Error;
351351
///
352352
/// let mut iter = err.sources();
353353
///

0 commit comments

Comments
 (0)