diff --git a/Cargo.lock b/Cargo.lock index 46bd72a1..6a210c79 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2458,7 +2458,7 @@ dependencies = [ [[package]] name = "nix_rs" -version = "0.2.1" +version = "0.2.2" dependencies = [ "bytesize", "cfg-if", diff --git a/crates/nix_rs/Cargo.toml b/crates/nix_rs/Cargo.toml index 17858a3d..034e8154 100644 --- a/crates/nix_rs/Cargo.toml +++ b/crates/nix_rs/Cargo.toml @@ -2,7 +2,7 @@ edition.workspace = true name = "nix_rs" # Important: remember to update the top-level Cargo.toml if updating major version -version = "0.2.1" +version = "0.2.2" license.workspace = true repository.workspace = true description = "Rust library for interacting with the Nix command" diff --git a/crates/nix_rs/src/flake/url.rs b/crates/nix_rs/src/flake/url.rs index f773030e..6475ca01 100644 --- a/crates/nix_rs/src/flake/url.rs +++ b/crates/nix_rs/src/flake/url.rs @@ -59,7 +59,7 @@ impl FlakeUrl { } /// Split the [FlakeAttr] out of the [FlakeUrl] - fn split_attr(&self) -> (Self, FlakeAttr) { + pub fn split_attr(&self) -> (Self, FlakeAttr) { match self.0.split_once('#') { Some((url, attr)) => (FlakeUrl(url.to_string()), FlakeAttr(Some(attr.to_string()))), None => (self.clone(), FlakeAttr(None)),