Skip to content

Commit

Permalink
Merge pull request #166 from a-kenji/refactor/update
Browse files Browse the repository at this point in the history
update: Rename to change_input_to_rev
  • Loading branch information
a-kenji authored Sep 9, 2024
2 parents d356ae4 + e45fe01 commit a5d6056
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ impl Updater {
let inputs = self.inputs.clone();
if let Some(input) = inputs.get(self.get_index(id)) {
tracing::debug!("Input: {:?}", input);
self.change_input(input, rev);
self.change_input_to_rev(input, rev);
}
}
/// Update all inputs to a specific semver release,
Expand Down Expand Up @@ -69,7 +69,7 @@ impl Updater {

/// Change a specific input to a specific rev.
/// TODO: proper error handling
pub fn change_input(&mut self, input: &UpdateInput, rev: &str) {
pub fn change_input_to_rev(&mut self, input: &UpdateInput, rev: &str) {
let uri = self.get_input_text(input);
match uri.parse::<FlakeRef>() {
Ok(mut parsed) => {
Expand Down

0 comments on commit a5d6056

Please sign in to comment.