conlang: Elide lifetimes (fixes clippy lint)

This commit is contained in:
2025-01-16 20:57:33 -06:00
parent d71276b477
commit 883fd31d38
7 changed files with 27 additions and 27 deletions

View File

@@ -20,7 +20,7 @@ pub enum Source<'a> {
Ty(&'a TyKind),
}
impl<'a> Source<'a> {
impl Source<'_> {
pub fn name(&self) -> Option<Sym> {
match self {
Source::Root => None,

View File

@@ -268,7 +268,7 @@ impl<'a> Table<'a> {
}
}
impl<'a> Default for Table<'a> {
impl Default for Table<'_> {
fn default() -> Self {
Self::new()
}