Skip to content
This repository was archived by the owner on Jan 6, 2025. It is now read-only.

Commit 7fb104e

Browse files
committed
Fix unused * warnings for no-std builds
1 parent c071ab1 commit 7fb104e

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

src/events.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,13 +131,12 @@ impl Future for EventFuture {
131131

132132
#[cfg(test)]
133133
mod tests {
134-
use super::*;
135-
use crate::lsps0::event::LSPS0ClientEvent;
136-
use bitcoin::secp256k1::{PublicKey, Secp256k1, SecretKey};
137-
138134
#[tokio::test]
139135
#[cfg(feature = "std")]
140136
async fn event_queue_works() {
137+
use super::*;
138+
use crate::lsps0::event::LSPS0ClientEvent;
139+
use bitcoin::secp256k1::{PublicKey, Secp256k1, SecretKey};
141140
use core::sync::atomic::{AtomicU16, Ordering};
142141
use std::sync::Arc;
143142
use std::time::Duration;

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ compile_error!("at least one of the `std` or `no-std` features must be enabled")
2525
extern crate alloc;
2626

2727
mod prelude {
28+
#![allow(unused_imports)]
2829
#[cfg(feature = "hashbrown")]
2930
extern crate hashbrown;
3031

src/sync/nostd_sync.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#![allow(dead_code)]
12
//! This file was copied from `rust-lightning`.
23
pub use ::alloc::sync::Arc;
34
use core::cell::{Ref, RefCell, RefMut};

0 commit comments

Comments
 (0)