mirror of
https://github.com/RGBCube/cstree
synced 2025-09-13 00:27:56 +00:00
Migrate to stable strict provenance APIs and elide some redundant lifetimes (#71)
* elide unnecessary lifetimes in `PartialEq` impls for `Symbol` * remove strict provenance polyfill after std APIs are now stable this raises MSRV to 1.84 * elide more redundant lifetimes --------- Co-authored-by: Domenic Quirl <DomenicQuirl@protonmail.com>
This commit is contained in:
parent
6c62982f67
commit
c061bf5a6b
9 changed files with 12 additions and 17 deletions
|
@ -20,7 +20,7 @@ impl PartialEq<Symbol> for Ident {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a> PartialEq<Symbol> for &'a Ident {
|
||||
impl PartialEq<Symbol> for &Ident {
|
||||
fn eq(&self, word: &Symbol) -> bool {
|
||||
*self == word.0
|
||||
}
|
||||
|
@ -32,7 +32,7 @@ impl PartialEq<Symbol> for Path {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a> PartialEq<Symbol> for &'a Path {
|
||||
impl PartialEq<Symbol> for &Path {
|
||||
fn eq(&self, word: &Symbol) -> bool {
|
||||
self.is_ident(word.0)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue