mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 06:41:48 +00:00
internal: Arc<String> -> Arc<str>
This commit is contained in:
parent
63e3bf118d
commit
f00dcf9a69
16 changed files with 34 additions and 36 deletions
|
@ -164,8 +164,8 @@ impl fmt::Display for FilesStats {
|
|||
}
|
||||
}
|
||||
|
||||
impl StatCollect<FileId, Arc<String>> for FilesStats {
|
||||
fn collect_entry(&mut self, _: FileId, value: Option<Arc<String>>) {
|
||||
impl StatCollect<FileId, Arc<str>> for FilesStats {
|
||||
fn collect_entry(&mut self, _: FileId, value: Option<Arc<str>>) {
|
||||
self.total += 1;
|
||||
self.size += value.unwrap().len();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue