diff --git a/src/builtins/status.rs b/src/builtins/status.rs index 90e6b1e68..2b4bd0df8 100644 --- a/src/builtins/status.rs +++ b/src/builtins/status.rs @@ -314,15 +314,14 @@ fn get(_file_path: &str) -> Option { } fn iter() -> rust_embed::Filenames { use rust_embed::Filenames::*; - cfg_if!( + cfg_if! { // TODO This is a clone of rebuild_if_embedded_path_changed. if #[cfg(any(not(debug_assertions), windows))] { - let nothing = Embedded([].iter()); + Embedded([].iter()) } else { - let nothing = Dynamic(Box::new(None.into_iter())); + Dynamic(Box::new(None.into_iter())) } - ); - nothing + } } }