mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-09 22:49:57 +09:00
4 lines
103 B
Rust
4 lines
103 B
Rust
pub fn path_eq(path: &syn::Path, s: &str) -> bool {
|
|
path.get_ident().map_or(false, |id| id == s)
|
|
}
|