mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-19 00:31:19 +00:00
internal: Rewrite ImportMap::search_dependencies
This commit is contained in:
parent
9279c6566b
commit
9b3052104c
2 changed files with 254 additions and 275 deletions
|
@ -59,6 +59,17 @@ impl<T, U> TupleExt for (T, U) {
|
|||
}
|
||||
}
|
||||
|
||||
impl<T, U, V> TupleExt for (T, U, V) {
|
||||
type Head = T;
|
||||
type Tail = V;
|
||||
fn head(self) -> Self::Head {
|
||||
self.0
|
||||
}
|
||||
fn tail(self) -> Self::Tail {
|
||||
self.2
|
||||
}
|
||||
}
|
||||
|
||||
pub fn to_lower_snake_case(s: &str) -> String {
|
||||
to_snake_case(s, char::to_lowercase)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue