Skip to content

Commit

Permalink
nix_rs: make split_attr public
Browse files Browse the repository at this point in the history
  • Loading branch information
srid committed Oct 29, 2023
1 parent 0c45504 commit ad35d86
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/nix_rs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion crates/nix_rs/src/flake/url.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
Expand Down

0 comments on commit ad35d86

Please sign in to comment.