Skip to content

Commit 20a8427

Browse files
committed
Remove redundant braces
1 parent 545702e commit 20a8427

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

compiler/rustc_resolve/src/late.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ use smallvec::{smallvec, SmallVec};
3131

3232
use rustc_span::source_map::{respan, Spanned};
3333
use std::collections::{hash_map::Entry, BTreeSet};
34-
use std::mem::{replace, take, swap};
34+
use std::mem::{replace, swap, take};
3535

3636
mod diagnostics;
3737

@@ -3334,7 +3334,6 @@ impl<'a: 'ast, 'b, 'ast> LateResolutionVisitor<'a, 'b, 'ast> {
33343334
let (mut err, candidates) =
33353335
this.smart_resolve_report_errors(path, path_span, PathSource::Type, None);
33363336

3337-
33383337
// There are two different error messages user might receive at
33393338
// this point:
33403339
// - E0412 cannot find type `{}` in this scope
@@ -3363,8 +3362,8 @@ impl<'a: 'ast, 'b, 'ast> LateResolutionVisitor<'a, 'b, 'ast> {
33633362
fn append_result<T, E>(res1: &mut Result<Vec<T>, E>, res2: Result<Vec<T>, E>) {
33643363
match res1 {
33653364
Ok(vec1) => match res2 {
3366-
Ok(mut vec2) => { vec1.append(&mut vec2); },
3367-
Err(e) => { *res1 = Err(e) },
3365+
Ok(mut vec2) => vec1.append(&mut vec2),
3366+
Err(e) => *res1 = Err(e),
33683367
},
33693368
Err(_) => (),
33703369
};

0 commit comments

Comments
 (0)