mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-26 19:31:15 -03:00
Use cfg_if expression syntax to fix let-and-return
This commit is contained in:
@@ -314,15 +314,14 @@ fn get(_file_path: &str) -> Option<rust_embed::EmbeddedFile> {
|
||||
}
|
||||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user