Refactor layer selection logic for more flexibility
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 0s
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:
parent
da0be47b14
commit
b7d0abb9ed
3 changed files with 45 additions and 28 deletions
|
@ -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!(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue