fixed cargo create bug

This commit is contained in:
mgbvox committed 2023-01-19 11:35:25 -05:00
1 parent eb91d779cf
commit e38092fc44
4 files changed
+5 -15

No files matched your search

+1 -1
View File
@@ -18,7 +18,7 @@ fn default_plugin() -> toml::Value {
impl DioxusConfig {
pub fn load() -> crate::error::Result<Option<DioxusConfig>> {
let crate_dir = crate::cargo::crate_root()?;
let Ok(crate_dir) = crate::cargo::crate_root() else { return Ok(None); };
// we support either `Dioxus.toml` or `Cargo.toml`
let Some(dioxus_conf_file) = acquire_dioxus_toml(crate_dir) else {