fix clippy

This commit is contained in:
Evan Almloff committed 2023-11-15 09:30:15 -06:00
1 parent 9bb464dd7d
commit e11f3fdc48
5 files changed
+6 -9

No files matched your search

+1 -1
View File
@@ -47,7 +47,7 @@ pub static CURRENT_CONFIG: once_cell::sync::Lazy<
Result<crate::config::CrateConfig, DioxusCLINotUsed>,
> = once_cell::sync::Lazy::new(|| {
CURRENT_CONFIG_JSON
.and_then(|config| serde_json::from_str(&config).ok())
.and_then(|config| serde_json::from_str(config).ok())
.ok_or_else(|| {
tracing::error!("A library is trying to access the crate's configuration, but the dioxus CLI was not used to build the application.");
DioxusCLINotUsed