Skip to content

Commit 9ba5be1

Browse files
committed
remove redundant "format" call
1 parent 696bd1d commit 9ba5be1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,7 @@ pub fn compress(buf: Box<[u8]>, raw_options: &JsValue) -> Result<Box<[u8]>, JsVa
3939
} else if raw_options.is_object() {
4040
options = raw_options.into_serde().unwrap();
4141
} else {
42-
return Err(JsValue::from_str(&format!(
43-
"Options is not an object"
44-
)));
42+
return Err(JsValue::from_str("Options is not an object"));
4543
}
4644

4745
let mut out = Vec::<u8>::new();

0 commit comments

Comments
 (0)