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
143 (143 (
144 Vec::<u8>::with_capacity(4096),144 Vec::<u8>::with_capacity(4096),
145 lock(&object_progress)145 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),
147 new_thread_state(),147 new_thread_state(),
148 resolve.clone(),148 resolve.clone(),
149 inspect_object.clone(),149 inspect_object.clone(),
git-pack/src/cache/lru.rs+2−2
@@ -40,7 +40,7 @@ mod memory { · 39 unmodified lines
40 .with_scale(CustomScale),40 .with_scale(CustomScale),
41 ),41 ),
42 free_list: Vec::new(),42 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)")),
44 }44 }
45 }45 }
46 }46 }
@@ -113,7 +113,7 @@ mod _static { · 66 unmodified lines
113 StaticLinkedList {113 StaticLinkedList {
114 inner: Default::default(),114 inner: Default::default(),
115 free_list: Vec::new(),115 free_list: Vec::new(),
116 debug: git_features::cache::Debug::new(format!("StaticLinkedList<{}>", SIZE)),116 debug: git_features::cache::Debug::new(format!("StaticLinkedList<{SIZE}>")),
117 }117 }
118 }118 }
119 }119 }
git-pack/src/cache/object.rs+1−1
@@ -49,7 +49,7 @@ mod memory { · 48 unmodified lines
49 .with_scale(CustomScale),49 .with_scale(CustomScale),
50 ),50 ),
51 free_list: Vec::new(),51 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)")),
53 }53 }
54 }54 }
55 }55 }

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