refactor: remove unnecessarily wrap value into a Result

this simplify code and remove some unwrap.
warning: this function's return value is unnecessarily wrapped by `Result`
help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.93.0/index.html#unnecessary_wraps
This commit is contained in:
Gwen Lg
2026-02-02 17:34:32 +01:00
committed by Alex
parent b060a7e0f1
commit 83f8bdbacd
7 changed files with 33 additions and 35 deletions
+1
View File
@@ -305,6 +305,7 @@ fn default_consistency_mode() -> String {
"consistent".into()
}
#[expect(clippy::unnecessary_wraps)]
fn default_compression() -> Option<i32> {
Some(1)
}