Skip to content

Commit

Permalink
fix: clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
kazupon committed Jan 8, 2024
1 parent 78aa0bd commit 9ece537
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/extensions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ impl fmt::Display for Extensions {
}
}

#[allow(dead_code)]
pub fn parse_extensions(chunk: &str) -> Result<Extensions, ParserError> {
// check empty
if chunk.is_empty() {
Expand Down
2 changes: 1 addition & 1 deletion src/locale.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::constants::SEP;
use crate::errors::ParserError;
use crate::extensions::{self, parse_extensions_from_iter, Extensions};
use crate::extensions::{parse_extensions_from_iter, Extensions};
use crate::lang::{parse_unicode_language_id_from_iter, UnicodeLanguageIdentifier};
use crate::shared::split_str;

Expand Down
2 changes: 1 addition & 1 deletion src/measure.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ fn parse_unicode_measure_unit_from_iter<'a>(
return Err(ParserError::InvalidSubtag);
}

values.push(String::from(subtag.to_string()));
values.push(subtag.to_string());
iter.next();
}

Expand Down

0 comments on commit 9ece537

Please sign in to comment.