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 @@ -349,7 +349,7 @@ impl Commit<'_> {
349
349
} ;
350
350
self . group = parser. group . clone ( ) . map ( regex_replace) ;
351
351
self . scope = parser. scope . clone ( ) . map ( regex_replace) ;
352
- self . default_scope = parser. default_scope . clone ( ) ;
352
+ self . default_scope . clone_from ( & parser. default_scope ) ;
353
353
return Ok ( self ) ;
354
354
}
355
355
}
Original file line number Diff line number Diff line change @@ -268,7 +268,7 @@ fn process_repository<'a>(
268
268
release. repository = Some ( repository. path . to_string_lossy ( ) . into_owned ( ) ) ;
269
269
if let Some ( tag) = tags. get ( & commit_id) {
270
270
release. version = Some ( tag. name . to_string ( ) ) ;
271
- release. message = tag. message . clone ( ) ;
271
+ release. message . clone_from ( & tag. message ) ;
272
272
release. commit_id = Some ( commit_id) ;
273
273
release. timestamp = if args. tag . as_deref ( ) == Some ( tag. name . as_str ( ) ) {
274
274
match tag_timestamp {
You can’t perform that action at this time.
0 commit comments