Make PathArguments::is_none() public

This commit is contained in:
David Tolnay 2022-11-27 17:32:31 -08:00
parent ac1dbf5d85
commit 3a0406db04
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -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,
}