mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 14:51:48 +00:00
cleanup syntax
This commit is contained in:
parent
e6f32c6d3a
commit
b228947b68
3 changed files with 34 additions and 8 deletions
|
@ -104,6 +104,10 @@ pub struct Filter {
|
|||
}
|
||||
|
||||
impl Filter {
|
||||
pub fn disabled() -> Filter {
|
||||
Filter::new(0, Vec::new())
|
||||
}
|
||||
|
||||
pub fn new(depth: usize, allowed: Vec<String>) -> Filter {
|
||||
Filter { depth, allowed }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue