Skip to content

Commit

Permalink
Per clippy impl Default for Uts46Mapper
Browse files Browse the repository at this point in the history
  • Loading branch information
hsivonen committed May 20, 2024
1 parent 608fdfe commit 0e9ef52
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions components/normalizer/src/uts46.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ pub struct Uts46Mapper {
normalizer: ComposingNormalizer,
}

#[cfg(feature = "compiled_data")]
impl Default for Uts46Mapper {
fn default() -> Self {
Self::new()
}
}

impl Uts46Mapper {
/// Construct with compiled data.
#[cfg(feature = "compiled_data")]
Expand All @@ -59,9 +66,7 @@ impl Uts46Mapper {

Ok(Uts46Mapper { normalizer })
}
}

impl Uts46Mapper {
/// Returns an iterator adaptor that turns an `Iterator` over `char`
/// into an iterator yielding a `char` sequence that gets the following
/// operations from the "Map" and "Normalize" steps of the "Processing"
Expand Down

0 comments on commit 0e9ef52

Please sign in to comment.