diff options
| author | Eduardo Sánchez Muñoz <eduardosm-dev@e64.io> | 2024-09-09 12:22:00 +0200 |
|---|---|---|
| committer | Eduardo Sánchez Muñoz <eduardosm-dev@e64.io> | 2024-09-09 13:32:22 +0200 |
| commit | 0b20ffcb63b00acbbe70ae6f59a746bcde4c8b96 (patch) | |
| tree | c180e16946093089cae099b227d33c675805b07a /compiler/rustc_monomorphize | |
| parent | adf8d168af9334a8bf940824fcf4207d01e05ae5 (diff) | |
| download | rust-0b20ffcb63b00acbbe70ae6f59a746bcde4c8b96.tar.gz rust-0b20ffcb63b00acbbe70ae6f59a746bcde4c8b96.zip | |
Remove needless returns detected by clippy in the compiler
Diffstat (limited to 'compiler/rustc_monomorphize')
| -rw-r--r-- | compiler/rustc_monomorphize/src/collector.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_monomorphize/src/collector.rs b/compiler/rustc_monomorphize/src/collector.rs index 093697a290c..c3f22896200 100644 --- a/compiler/rustc_monomorphize/src/collector.rs +++ b/compiler/rustc_monomorphize/src/collector.rs @@ -1193,7 +1193,7 @@ fn assoc_fn_of_type<'tcx>(tcx: TyCtxt<'tcx>, def_id: DefId, fn_ident: Ident) -> return Some(new.def_id); } } - return None; + None } /// Scans the MIR in order to find function calls, closures, and drop-glue. |
