mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-23 08:42:40 +00:00
prefer default over new
This commit is contained in:
parent
6ca780700d
commit
2462624a7d
46 changed files with 100 additions and 127 deletions
|
@ -34,10 +34,6 @@ impl fmt::Debug for FileChange {
|
|||
}
|
||||
|
||||
impl FileChange {
|
||||
pub fn new() -> Self {
|
||||
FileChange::default()
|
||||
}
|
||||
|
||||
pub fn set_roots(&mut self, roots: Vec<SourceRoot>) {
|
||||
self.roots = Some(roots);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue