about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDeadbeef <ent3rm4n@gmail.com>2021-07-23 00:07:56 +0800
committerDeadbeef <ent3rm4n@gmail.com>2021-08-13 09:26:34 +0000
commitd356cd10f7380cc3d9e20d50f2d64e4a07ba196c (patch)
tree13f16e89c7ad5c43e1f997d35d1d9b17eb0a87fe
parent4c8b6a20a99d3104100492e8c688d41e51aee3da (diff)
downloadrust-d356cd10f7380cc3d9e20d50f2d64e4a07ba196c.tar.gz
rust-d356cd10f7380cc3d9e20d50f2d64e4a07ba196c.zip
fmt
-rw-r--r--compiler/rustc_trait_selection/src/traits/select/mod.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/select/mod.rs b/compiler/rustc_trait_selection/src/traits/select/mod.rs
index f334452a791..a158a37cd68 100644
--- a/compiler/rustc_trait_selection/src/traits/select/mod.rs
+++ b/compiler/rustc_trait_selection/src/traits/select/mod.rs
@@ -1032,8 +1032,9 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
                 AutoImplCandidate(..) => {}
                 // FIXME check if this is right, but this would allow Sized impls
                 BuiltinCandidate { .. } => {}
-                _ => { // reject all other types of candidates
-                    return Err(Unimplemented)
+                _ => {
+                    // reject all other types of candidates
+                    return Err(Unimplemented);
                 }
             }
         }