From 516d5ccce0237dc1c41d55f1487e37c6745abeea Mon Sep 17 00:00:00 2001 From: Clement Rey Date: Mon, 22 Jan 2024 15:34:33 +0100 Subject: [PATCH] lints --- crates/re_data_store/Cargo.toml | 2 +- crates/re_data_store/src/test_util.rs | 5 +++-- deny.toml | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/crates/re_data_store/Cargo.toml b/crates/re_data_store/Cargo.toml index e951a1d0da5f..6a7ce969b98e 100644 --- a/crates/re_data_store/Cargo.toml +++ b/crates/re_data_store/Cargo.toml @@ -28,7 +28,7 @@ deadlock_detection = ["parking_lot/deadlock_detection"] re_error.workspace = true re_format = { workspace = true, features = ["arrow"] } re_log_types.workspace = true -re_log.workspace = true +re_log = { workspace = true, features = ["setup"] } re_tracing.workspace = true re_types_core.workspace = true diff --git a/crates/re_data_store/src/test_util.rs b/crates/re_data_store/src/test_util.rs index 0944ab811f3c..c717a6e35115 100644 --- a/crates/re_data_store/src/test_util.rs +++ b/crates/re_data_store/src/test_util.rs @@ -1,5 +1,3 @@ -use std::sync::atomic::{AtomicBool, Ordering}; - use re_log_types::DataTable; use crate::{DataStore, DataStoreConfig, WriteError}; @@ -82,7 +80,10 @@ pub fn insert_table_with_retries(store: &mut DataStore, table: &DataTable) { } } +#[cfg(not(target_arch = "wasm32"))] pub fn init_logs() { + use std::sync::atomic::{AtomicBool, Ordering}; + static INIT: AtomicBool = AtomicBool::new(false); if INIT diff --git a/deny.toml b/deny.toml index 337e17bd3128..94cb3a31d6bb 100644 --- a/deny.toml +++ b/deny.toml @@ -43,7 +43,6 @@ deny = [ { name = "openssl" }, # We prefer rustls { name = "reqwest" }, # We prefer ureq - less dependencies ] - skip = [ { name = "ahash" }, # Popular crate + fast release schedule = lots of crates still using old versions { name = "async-fs" }, # Old version via accesskit @@ -55,6 +54,7 @@ skip = [ { name = "memoffset" }, # Small crate { name = "prettyplease" }, # Old version being used by prost { name = "raw-window-handle" }, # Pretty small crate; some crates still on old version + { name = "redox_syscall" }, # Plenty of versions in the wild { name = "spin" }, # Old version used by rusttls { name = "windows" }, # Old version used by accesskit_windows, newer version used by wgpu ]