diff --git a/rust-toolchain b/rust-toolchain index 101ae3a..b27a258 100644 --- a/rust-toolchain +++ b/rust-toolchain @@ -1 +1 @@ -nightly-2023-03-01 \ No newline at end of file +nightly-2023-04-20 diff --git a/src/project.rs b/src/project.rs index 96917f3..432d428 100644 --- a/src/project.rs +++ b/src/project.rs @@ -83,6 +83,8 @@ impl Project { }, }; + dbg!(template_path.clone()); + cargo_generate::generate(GenerateArgs { template_path, list_favorites: false, @@ -399,11 +401,10 @@ impl Project { } fn odra_location(source: Option) -> OdraLocation { - // repo let source = if let Some(source) = source { source } else { - return OdraLocation::Remote(ODRA_TEMPLATE_GH_REPO.to_string(), None); + Self::odra_latest_version() }; // location on disk