Skip to content

Commit

Permalink
Merge pull request #1244 from dtolnay/isnone
Browse files Browse the repository at this point in the history
Make PathArguments::is_none() public
  • Loading branch information
dtolnay committed Nov 28, 2022
2 parents ac1dbf5 + 3a0406d commit e054b03
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/path.rs
Expand Up @@ -89,9 +89,8 @@ impl PathArguments {
}
}

#[cfg(feature = "parsing")]
fn is_none(&self) -> bool {
match *self {
pub fn is_none(&self) -> bool {
match self {
PathArguments::None => true,
PathArguments::AngleBracketed(_) | PathArguments::Parenthesized(_) => false,
}
Expand Down

0 comments on commit e054b03

Please sign in to comment.