1
Fork 0
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:
DQ 2025-02-02 18:43:46 +01:00 committed by GitHub
parent 6c62982f67
commit c061bf5a6b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 12 additions and 17 deletions

View file

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