Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
JssDWt committed Nov 29, 2024
1 parent 18ab125 commit 9cc16ee
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libs/sdk-bindings/src/uniffi_binding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ impl BindingLogger {
impl log::Log for BindingLogger {
fn enabled(&self, m: &Metadata) -> bool {
// ignore the internal uniffi log to prevent infinite loop.
return m.level() <= Level::Trace && *m.target() != *"breez_sdk_bindings::uniffi_binding";
m.level() <= Level::Trace && *m.target() != *"breez_sdk_bindings::uniffi_binding"
}

fn log(&self, record: &Record) {
Expand Down
2 changes: 1 addition & 1 deletion libs/sdk-core/src/models.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1582,7 +1582,7 @@ impl PaymentPathEdge {
}

fn divide_ceil(dividend: u64, factor: u64) -> u64 {
(dividend + factor - 1) / factor
dividend.div_ceil(factor)
}
}

Expand Down
2 changes: 1 addition & 1 deletion libs/sdk-core/src/serializer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ where
}
}

impl<'a, S: 'a> serde::ser::Serializer for HexSerializer<S>
impl<S> serde::ser::Serializer for HexSerializer<S>
where
S: serde::ser::Serializer,
{
Expand Down

0 comments on commit 9cc16ee

Please sign in to comment.