mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 14:51:48 +00:00
Run cargo fix --edition-idioms
This commit is contained in:
parent
23d25a3094
commit
816f7fe12a
230 changed files with 888 additions and 888 deletions
|
@ -11,7 +11,7 @@ pub struct MemoryUsage {
|
|||
}
|
||||
|
||||
impl fmt::Display for MemoryUsage {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
self.allocated.fmt(f)
|
||||
}
|
||||
}
|
||||
|
@ -97,7 +97,7 @@ impl Bytes {
|
|||
}
|
||||
|
||||
impl fmt::Display for Bytes {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
let bytes = self.0;
|
||||
let mut value = bytes;
|
||||
let mut suffix = "b";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue