mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
internal: Simplify some completions
This commit is contained in:
parent
8b078986dc
commit
7a0774defa
11 changed files with 147 additions and 222 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
mod source_to_def;
|
||||
|
||||
use std::{cell::RefCell, fmt, iter};
|
||||
use std::{cell::RefCell, fmt, iter, ops};
|
||||
|
||||
use base_db::{FileId, FileRange};
|
||||
use hir_def::{
|
||||
|
@ -1449,3 +1449,11 @@ impl<'a> SemanticsScope<'a> {
|
|||
}
|
||||
|
||||
pub struct VisibleTraits(pub FxHashSet<TraitId>);
|
||||
|
||||
impl ops::Deref for VisibleTraits {
|
||||
type Target = FxHashSet<TraitId>;
|
||||
|
||||
fn deref(&self) -> &Self::Target {
|
||||
&self.0
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue