mirror of
https://gitee.com/openharmony/third_party_rust_syn
synced 2024-11-23 07:50:04 +00:00
Make PathArguments::is_none() public
This commit is contained in:
parent
ac1dbf5d85
commit
3a0406db04
@ -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,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user