File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -746,7 +746,7 @@ mod tests {
746
746
) ;
747
747
748
748
let content_dir = template. content_dir ( ) . as_ref ( ) . unwrap ( ) ;
749
- let cargo = tokio:: fs:: read_to_string ( content_dir. join ( "Cargo.toml" ) )
749
+ let cargo = tokio:: fs:: read_to_string ( content_dir. join ( "Cargo.toml.tmpl " ) )
750
750
. await
751
751
. unwrap ( ) ;
752
752
assert ! ( cargo. contains( "name = \" {{project-name | kebab_case}}\" " ) ) ;
Original file line number Diff line number Diff line change @@ -349,7 +349,7 @@ impl Run {
349
349
// Strip optional .tmpl extension
350
350
// Templates can use this if they don't want to store files with their final extensions
351
351
let paths = paths. into_iter ( ) . map ( |p| {
352
- if p. extension ( ) . map ( |e| e == "tmpl" ) . unwrap_or_default ( ) {
352
+ if p. extension ( ) . is_some_and ( |e| e == "tmpl" ) {
353
353
p. with_extension ( "" )
354
354
} else {
355
355
p
You can’t perform that action at this time.
0 commit comments