Skip to content

Commit b94f16a

Browse files
authored
Rollup merge of rust-lang#142237 - benschulz:unused-parens-fn, r=fee1-dead
Detect more cases of unused_parens around types With this change, more unused parentheses around bounds and types nested within bounds are detected.
2 parents 3f8bd7d + 5c6f47c commit b94f16a

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)