Skip to content

Commit 9becc09

Browse files
committed
fix: add conditional FloatExt import for no_std build
1 parent a66cf82 commit 9becc09

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)