Skip to content

Commit

Permalink
Address a few lints
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanUkhov committed Feb 21, 2024
1 parent 0544796 commit a320803
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/tables/names/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ impl Names {
/// Iterate over name records.
pub fn iter(
&self,
) -> impl Iterator<Item = ((PlatformID, EncodingID, LanguageID, NameID), Option<String>)>
+ DoubleEndedIterator
+ '_ {
) -> impl DoubleEndedIterator<
Item = ((PlatformID, EncodingID, LanguageID, NameID), Option<String>),
> + '_ {
let (records, data) = match self {
Self::Format0(ref table) => (&table.records, &table.data),
Self::Format1(ref table) => (&table.records, &table.data),
Expand Down Expand Up @@ -203,7 +203,7 @@ impl Names {
}

/// Iterate over the language tags.
pub fn language_tags(&self) -> impl Iterator<Item = Option<String>> + DoubleEndedIterator + '_ {
pub fn language_tags(&self) -> impl DoubleEndedIterator<Item = Option<String>> + '_ {
let (records, data) = match self {
Self::Format0(ref table) => (&[][..], &table.data),
Self::Format1(ref table) => (&table.language_tags[..], &table.data),
Expand Down

0 comments on commit a320803

Please sign in to comment.