From 0b20ffcb63b00acbbe70ae6f59a746bcde4c8b96 Mon Sep 17 00:00:00 2001 From: Eduardo Sánchez Muñoz Date: Mon, 9 Sep 2024 12:22:00 +0200 Subject: Remove needless returns detected by clippy in the compiler --- compiler/rustc_monomorphize/src/collector.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/rustc_monomorphize/src') 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. -- cgit 1.4.1-3-g733a5