Skip to content

Commit

Permalink
make Generator::skip_types more generic
Browse files Browse the repository at this point in the history
  • Loading branch information
micahrj committed Feb 4, 2024
1 parent 83fc872 commit 632b49d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions com-scrape/src/generator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ impl Generator {
}

/// Do not generate bindings for `types`.
pub fn skip_types<'a, T: AsRef<[&'a str]>>(mut self, types: T) -> Self {
pub fn skip_types<S: AsRef<str>, T: AsRef<[S]>>(mut self, types: T) -> Self {
self.skip_types
.extend(types.as_ref().iter().map(|s| s.to_string()));
.extend(types.as_ref().iter().map(|s| s.as_ref().to_string()));
self
}

Expand Down

0 comments on commit 632b49d

Please sign in to comment.