Skip to content

Commit 6fc33bc

Browse files
committed
Removes once_cell dependency
1 parent 0d2a78a commit 6fc33bc

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ axum = "0.6.20"
126126
hyper-staticfile = "0.9"
127127
httparse = "1.8"
128128
sha1 = "0.10"
129-
once_cell = "1.17.1"
130129
waker-fn = "1.1.0"
131130
num = "0.4"
132131
smol_str = "0.2.0"

server/swimos_introspection/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ tracing = { workspace = true }
2222
uuid = { workspace = true }
2323
thiserror = { workspace = true }
2424
parking_lot = { workspace = true, features = ["send_guard"] }
25-
once_cell = { workspace = true }
2625

2726
[dev-dependencies]
2827
tokio = { workspace = true, features = ["rt", "macros", "time", "test-util"] }

server/swimos_introspection/src/meta_mesh/tests.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,11 @@ use crate::model::AgentIntrospectionUpdater;
1717
use crate::task::AgentMeta;
1818
use futures::future::{join, BoxFuture};
1919
use futures::{SinkExt, StreamExt};
20-
use once_cell::sync::OnceCell;
2120
use parking_lot::RwLock;
2221
use std::fmt::Debug;
2322
use std::future::Future;
2423
use std::num::NonZeroUsize;
25-
use std::sync::Arc;
24+
use std::sync::{Arc, OnceLock};
2625
use swimos_agent_protocol::encoding::lane::{MapLaneResponseDecoder, RawValueLaneRequestEncoder};
2726
use swimos_agent_protocol::{LaneRequest, LaneResponse, MapOperation};
2827
use swimos_api::agent::{AgentContext, HttpLaneRequestChannel, LaneConfig};
@@ -198,7 +197,7 @@ fn push_uri(forest: &mut UriForest<AgentMeta>, reporter: &UplinkReporter, path:
198197
);
199198
}
200199

201-
static NOW: OnceCell<Timestamp> = OnceCell::new();
200+
static NOW: OnceLock<Timestamp> = OnceLock::new();
202201

203202
#[tokio::test]
204203
async fn count_lanes_empty() {

0 commit comments

Comments
 (0)