diff --git a/Cargo.lock b/Cargo.lock index 05904fe589..dc0642af75 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1208,9 +1208,9 @@ checksum = "6c8640c5d730cb13ebd907d8d04b52f55ac9a2eec55b440c8892f40d56c76c1d" [[package]] name = "minijinja" -version = "1.0.21" +version = "2.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "55e877d961d4f96ce13615862322df7c0b6d169d40cab71a7ef3f9b9e594451e" +checksum = "7165d0e94806d52ad5295e4b54a95176d831814840bc067298ca647e1c956338" dependencies = [ "serde", "serde_json", diff --git a/rye/Cargo.toml b/rye/Cargo.toml index 72431ba886..204f3006d1 100644 --- a/rye/Cargo.toml +++ b/rye/Cargo.toml @@ -24,7 +24,7 @@ git-testament = "0.2.4" globset = "0.4.10" indicatif = "0.17.3" license = { version = "3.1.1", features = ["offline"] } -minijinja = { version = "1.0.0", features = ["json"] } +minijinja = { version = "2.0.1", features = ["json"] } once_cell = "1.17.1" pathdiff = "0.2.1" pep440_rs = "0.4.0" diff --git a/rye/src/cli/init.rs b/rye/src/cli/init.rs index 907f9292b1..e88608357a 100644 --- a/rye/src/cli/init.rs +++ b/rye/src/cli/init.rs @@ -253,7 +253,7 @@ pub fn execute(cmd: Args) -> Result<(), Error> { } if metadata.author.is_none() { is_metadata_author_none = true; - metadata.author = author.clone(); + metadata.author.clone_from(&author); } if metadata.requires_python.is_none() { metadata.requires_python = Some(requires_python);