mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-27 12:29:28 +00:00
Remove the optional salsa dependency from the AST crate (#14363)
This commit is contained in:
parent
9f3235a37f
commit
2b58705cc1
5 changed files with 3 additions and 21 deletions
|
@ -205,21 +205,6 @@ impl schemars::JsonSchema for Name {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "salsa")]
|
||||
impl salsa::plumbing::interned::Lookup<Name> for &str {
|
||||
fn hash<H: Hasher>(&self, h: &mut H) {
|
||||
std::hash::Hash::hash(self, h);
|
||||
}
|
||||
|
||||
fn eq(&self, data: &Name) -> bool {
|
||||
self == data
|
||||
}
|
||||
|
||||
fn into_owned(self) -> Name {
|
||||
Name::new(self)
|
||||
}
|
||||
}
|
||||
|
||||
/// A representation of a qualified name, like `typing.List`.
|
||||
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
|
||||
pub struct QualifiedName<'a>(SegmentsVec<'a>);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue