Refactor layer selection logic for more flexibility
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 0s

Updated the layer selection logic to utilize an enum, LayersSelector, which supports selecting no layers, specific layers, or all available layers. This refactor enhances code clarity and allows for more flexible layer management.
This commit is contained in:
Florian RICHER 2024-11-10 19:10:16 +01:00
parent da0be47b14
commit b7d0abb9ed
Signed by: florian.richer
GPG key ID: C73D37CBED7BFC77
3 changed files with 45 additions and 28 deletions

View file

@ -1,5 +1,5 @@
mod layers;
pub use layers::use_layers;
pub use layers::{use_layers, LayersSelector};
pub fn print_version(version: u32) -> String {
format!(