Skip to content

Commit 7f0bf51

Browse files
committed
Factor out stream-guard into separate library
1 parent aa4fd17 commit 7f0bf51

File tree

5 files changed

+3
-54
lines changed

5 files changed

+3
-54
lines changed

lighthouse-client/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ serde_with = "3.4"
2626
rmp-serde = "1.0"
2727
rand = "0.8"
2828
thiserror = "1.0.58"
29-
pin-project = "1.1.5"
29+
stream-guard = "1.0.0"
3030

3131
[dev-dependencies]
3232
tracing-subscriber = { version = "0.3", features = ["env-filter", "std"] }

lighthouse-client/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,13 @@ mod connect;
33
mod constants;
44
mod error;
55
mod lighthouse;
6-
mod utils;
76
mod spawn;
87

98
pub use check::*;
109
pub use connect::*;
1110
pub use constants::*;
1211
pub use error::*;
1312
pub use lighthouse::*;
14-
pub(crate) use utils::*;
1513
pub use spawn::*;
1614

1715
pub use lighthouse_protocol as protocol;

lighthouse-client/src/lighthouse.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ use async_tungstenite::tungstenite::{Message, self};
44
use futures::{prelude::*, channel::mpsc::{Sender, self}, stream::{SplitSink, SplitStream}, lock::Mutex};
55
use lighthouse_protocol::{Authentication, ClientMessage, DirectoryTree, Frame, LaserMetrics, Model, ServerMessage, Value, Verb};
66
use serde::{Deserialize, Serialize};
7+
use stream_guard::GuardStreamExt;
78
use tracing::{warn, error, debug, info};
8-
use crate::{Check, Error, Result, Spawner, StreamExt};
9+
use crate::{Check, Error, Result, Spawner};
910

1011
/// A connection to the lighthouse server for sending requests and receiving events.
1112
pub struct Lighthouse<S> {

lighthouse-client/src/utils/mod.rs

Lines changed: 0 additions & 3 deletions
This file was deleted.

lighthouse-client/src/utils/stream_guard.rs

Lines changed: 0 additions & 47 deletions
This file was deleted.

0 commit comments

Comments
 (0)