History

thanks clippy

Sebastian Thiel committed 3 years ago

Commit bac57dd1 parent e22080e100 files · +172 −230Browse files

Showing the changes to git-pack/src/cache (3 of 100 files). Show all

Unified · Split

3 files
  1. git-pack/src/cache/delta/traverse/mod.rs +1 −1
  2. git-pack/src/cache/lru.rs +2 −2
  3. git-pack/src/cache/object.rs +1 −1
git-pack/src/cache/delta/traverse/mod.rs+1−1
@@ -143,7 +143,7 @@ where · 142 unmodified lines
143143 (
144144 Vec::<u8>::with_capacity(4096),
145145 lock(&object_progress)
146− .add_child_with_id(format!("thread {}", thread_index), git_features::progress::UNKNOWN),
146+ .add_child_with_id(format!("thread {thread_index}"), git_features::progress::UNKNOWN),
147147 new_thread_state(),
148148 resolve.clone(),
149149 inspect_object.clone(),
git-pack/src/cache/lru.rs+2−2
@@ -40,7 +40,7 @@ mod memory { · 39 unmodified lines
4040 .with_scale(CustomScale),
4141 ),
4242 free_list: Vec::new(),
43− debug: git_features::cache::Debug::new(format!("MemoryCappedHashmap({}B)", memory_cap_in_bytes)),
43+ debug: git_features::cache::Debug::new(format!("MemoryCappedHashmap({memory_cap_in_bytes}B)")),
4444 }
4545 }
4646 }
@@ -113,7 +113,7 @@ mod _static { · 66 unmodified lines
113113 StaticLinkedList {
114114 inner: Default::default(),
115115 free_list: Vec::new(),
116− debug: git_features::cache::Debug::new(format!("StaticLinkedList<{}>", SIZE)),
116+ debug: git_features::cache::Debug::new(format!("StaticLinkedList<{SIZE}>")),
117117 }
118118 }
119119 }
git-pack/src/cache/object.rs+1−1
@@ -49,7 +49,7 @@ mod memory { · 48 unmodified lines
4949 .with_scale(CustomScale),
5050 ),
5151 free_list: Vec::new(),
52− debug: git_features::cache::Debug::new(format!("MemoryCappedObjectHashmap({}B)", memory_cap_in_bytes)),
52+ debug: git_features::cache::Debug::new(format!("MemoryCappedObjectHashmap({memory_cap_in_bytes}B)")),
5353 }
5454 }
5555 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t