mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Minor manual cleanu
* use default derive * use `strip_prefix` where possible to avoid dup work
This commit is contained in:
parent
f1785f7a21
commit
ec55dd1d7b
4 changed files with 9 additions and 24 deletions
|
@ -140,16 +140,11 @@ impl FileSetConfig {
|
|||
}
|
||||
|
||||
/// Builder for [`FileSetConfig`].
|
||||
#[derive(Default)]
|
||||
pub struct FileSetConfigBuilder {
|
||||
roots: Vec<Vec<VfsPath>>,
|
||||
}
|
||||
|
||||
impl Default for FileSetConfigBuilder {
|
||||
fn default() -> Self {
|
||||
FileSetConfigBuilder { roots: Vec::new() }
|
||||
}
|
||||
}
|
||||
|
||||
impl FileSetConfigBuilder {
|
||||
/// Returns the number of sets currently held.
|
||||
pub fn len(&self) -> usize {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue