Skip to content

Commit de65015

Browse files
committed
chore: cargo fmt
1 parent 4a0b9ab commit de65015

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/replace_source.rs

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
use std::{
2-
borrow::Cow, cell::RefCell, collections::hash_map::Entry, hash::{Hash, Hasher}, sync::{
2+
borrow::Cow,
3+
cell::RefCell,
4+
collections::hash_map::Entry,
5+
hash::{Hash, Hasher},
6+
sync::{
37
atomic::{AtomicBool, Ordering},
48
Arc, Mutex, MutexGuard, OnceLock,
5-
}
9+
},
610
};
711

812
use rustc_hash::FxHashMap as HashMap;
@@ -406,9 +410,7 @@ impl<T: Source> StreamChunks for ReplaceSource<T> {
406410
let mut name_mapping = name_mapping.borrow_mut();
407411
let len = name_mapping.len() as u32;
408412
let global_index = match name_mapping.entry(name.to_string()) {
409-
Entry::Occupied(entry) => {
410-
*entry.get()
411-
},
413+
Entry::Occupied(entry) => *entry.get(),
412414
Entry::Vacant(entry) => {
413415
entry.insert(len);
414416
on_name.borrow_mut()(len, name);
@@ -581,9 +583,7 @@ impl<T: Source> StreamChunks for ReplaceSource<T> {
581583
let mut name_mapping = name_mapping.borrow_mut();
582584
let len = name_mapping.len() as u32;
583585
let global_index = match name_mapping.entry(name.to_string()) {
584-
Entry::Occupied(entry) => {
585-
*entry.get()
586-
},
586+
Entry::Occupied(entry) => *entry.get(),
587587
Entry::Vacant(entry) => {
588588
entry.insert(len);
589589
on_name.borrow_mut()(len, name);

0 commit comments

Comments
 (0)