Skip to content

Commit 1ddd46a

Browse files
committed
fmt
1 parent 1883648 commit 1ddd46a

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

objdiff-wasm/src/api.rs

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@ use alloc::{
99
};
1010
use core::cell::RefCell;
1111

12-
use objdiff_core::{
13-
diff,
14-
obj,
15-
};
12+
use objdiff_core::{diff, obj};
1613
use regex::{Regex, RegexBuilder};
1714
use xxhash_rust::xxh3::xxh3_64;
1815

@@ -27,10 +24,9 @@ wit_bindgen::generate!({
2724

2825
use exports::objdiff::core::{
2926
diff::{
30-
DiffConfigBorrow, DiffResult, Guest as GuestDiff, GuestDiffConfig, GuestObject,
27+
DiffConfigBorrow, DiffResult, DiffSide, Guest as GuestDiff, GuestDiffConfig, GuestObject,
3128
GuestObjectDiff, MappingConfig, Object, ObjectBorrow, ObjectDiff, ObjectDiffBorrow,
3229
SymbolFlags, SymbolInfo, SymbolKind, SymbolRef,
33-
DiffSide,
3430
},
3531
display::{
3632
ContextItem, ContextItemCopy, ContextItemNavigate, DiffText, DiffTextColor, DiffTextOpcode,
@@ -504,8 +500,9 @@ impl GuestObject for ResourceObject {
504500
return Ok(Object::new(ResourceObject(obj, hash)));
505501
}
506502
let diff_config = diff_config.get::<ResourceDiffConfig>().0.borrow();
507-
let obj =
508-
Rc::new(obj::read::parse(&data, &diff_config, diff_side.into()).map_err(|e| e.to_string())?);
503+
let obj = Rc::new(
504+
obj::read::parse(&data, &diff_config, diff_side.into()).map_err(|e| e.to_string())?,
505+
);
509506
OBJECT_CACHE.borrow_mut().push(CachedObject(Rc::downgrade(&obj), hash));
510507
Ok(Object::new(ResourceObject(obj, hash)))
511508
}

0 commit comments

Comments
 (0)