mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Rust: Remove redundant code.
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user