Rust: Remove redundant code.

This commit is contained in:
Geoffrey White
2025-08-28 09:30:50 +01:00
parent 194363c107
commit 1e46dd8412

View File

@@ -63,37 +63,3 @@ impl TextValue for ast::RangePat {
self.op_token().map(|x| x.text().to_string())
}
}
pub trait PathAst: AstNode {
fn path(&self) -> Option<ast::Path>;
}
impl PathAst for ast::PathExpr {
fn path(&self) -> Option<ast::Path> {
self.path()
}
}
impl PathAst for ast::RecordExpr {
fn path(&self) -> Option<ast::Path> {
self.path()
}
}
impl PathAst for ast::PathPat {
fn path(&self) -> Option<ast::Path> {
self.path()
}
}
impl PathAst for ast::RecordPat {
fn path(&self) -> Option<ast::Path> {
self.path()
}
}
impl PathAst for ast::TupleStructPat {
fn path(&self) -> Option<ast::Path> {
self.path()
}
}