Skip to content

Commit 89f5568

Browse files
committed
Merge #37: fix: add conditional FloatExt import for no_std builds
9becc09 fix: add conditional FloatExt import for no_std build (Abiodun) Pull request description: Fixes compilation error when building with `--no-default-features` by adding a conditional import of the `FloatExt` trait in `feerate.rs`. * [x] I've signed all my commits * [x] I ran `cargo fmt` and `cargo clippy` before committing * [x] CHANGELOG.md updated Fixes #36 ACKs for top commit: evanlinjin: ACK 9becc09 Tree-SHA512: 99fc582a9a0efd23025abe8cdbcfa5719acb0d776b3dfe3f9b2ed21a8b33cd1757b2807a12b13bd32def1b1e075d173d88b34c8f87b0d90ec593041828f8e36c
2 parents a66cf82 + 9becc09 commit 89f5568

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Unreleased
2+
3+
- Fix compilation error when building with `--no-default-features` (#36)
4+
15
# 0.4.0
26

37
- Use `u64` for weights instead of u32

src/feerate.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#[cfg(not(feature = "std"))]
2+
use crate::float::FloatExt;
13
use crate::float::Ordf32;
24
use core::ops::{Add, Sub};
35

0 commit comments

Comments
 (0)