mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
remove num_format
This commit is contained in:
parent
673933e2f7
commit
044e21ae08
5 changed files with 6 additions and 42 deletions
|
@ -10,7 +10,6 @@ use ide_db::{
|
|||
RootDatabase,
|
||||
};
|
||||
use itertools::Itertools;
|
||||
use num_format::{Buffer, Locale};
|
||||
use profile::{memory_usage, Bytes};
|
||||
use rustc_hash::FxHashMap;
|
||||
use stdx::format_to;
|
||||
|
@ -110,8 +109,7 @@ pub(crate) struct SyntaxTreeStats {
|
|||
|
||||
impl fmt::Display for SyntaxTreeStats {
|
||||
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
|
||||
let buf = Buffer::default().write_formatted(&self.total, &Locale::en);
|
||||
write!(fmt, "{} trees, {} preserved", buf.to_string(), self.retained)
|
||||
write!(fmt, "{} trees, {} preserved", self.total, self.retained)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue