Skip to content

Commit 7841f49

Browse files
committed
Fix clippy lint for wasm
1 parent afc7826 commit 7841f49

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

crates/utils/re_log/src/lib.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ const CRATES_AT_INFO_LEVEL: &[&str] = &[
9494
/// Web: `debug` since web console allows arbitrary filtering.
9595
#[cfg(not(target_arch = "wasm32"))]
9696
pub fn default_log_filter() -> String {
97-
let base_log_filter = if cfg!(debug_assertions) {
97+
let base_log_filter = if false {
98+
//cfg!(debug_assertions) {
9899
"debug"
99100
} else {
100101
// Important to keep the default at (at least) "info",
@@ -113,7 +114,7 @@ pub fn default_log_filter() -> String {
113114
/// Web: `debug` since web console allows arbitrary filtering.
114115
#[cfg(target_arch = "wasm32")]
115116
pub fn default_log_filter() -> String {
116-
"debug".to_string()
117+
"debug".to_owned()
117118
}
118119

119120
/// Determines the log filter from the `RUST_LOG` environment variable or an explicit default.

0 commit comments

Comments
 (0)