fixed cargo create bug
This commit is contained in:
1 parent
eb91d779cf
commit
e38092fc44
4 files changed
+5
-15
No files matched your search
+1
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user