Skip to content

Commit

Permalink
Move ?Sized bounds into where-clauses
Browse files Browse the repository at this point in the history
This wasn't allowed in old versions of Rust when this code was originally written.
  • Loading branch information
dtolnay committed Jul 15, 2023
1 parent a4d7aa8 commit 3d05bb5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,9 @@ impl Path {
/// }
/// }
/// ```
pub fn is_ident<I: ?Sized>(&self, ident: &I) -> bool
pub fn is_ident<I>(&self, ident: &I) -> bool
where
I: ?Sized,
Ident: PartialEq<I>,
{
match self.get_ident() {
Expand Down

0 comments on commit 3d05bb5

Please sign in to comment.