Skip to content

Commit

Permalink
Clippy lint
Browse files Browse the repository at this point in the history
  • Loading branch information
vrmiguel committed Sep 24, 2024
1 parent 782464c commit 92b89e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cli/src/control_file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ impl ControlFile {
}
}

fn strip_value(input: &str) -> &str {
let stripped = input.trim_start_matches(|ch| matches!(ch, ' ' | '='));
pub fn strip_value(input: &str) -> &str {
let stripped = input.trim_start_matches([' ', '=']);

let trimmed = stripped.trim_start();
trimmed.trim_matches('\'')
Expand Down
2 changes: 1 addition & 1 deletion registry/src/v1/extractor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ fn parse_control_file(extension_name: String, control_file: String) -> ControlFi
let mut default_version = None;

fn strip_value(input: &str) -> &str {
let stripped = input.trim_start_matches(|ch| matches!(ch, ' ' | '='));
let stripped = input.trim_start_matches([' ', '=']);

let trimmed = stripped.trim_start();
trimmed.trim_matches('\'')
Expand Down

0 comments on commit 92b89e1

Please sign in to comment.