Skip to content

Commit

Permalink
Use String::from for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
mgeisler authored Feb 20, 2024
1 parent 8b772ed commit 5d87006
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion i18n-helpers/src/xgettext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ fn add_message(catalog: &mut Catalog, msgid: &str, source: &str, comment: &str)
let message = Message::build_singular()
.with_source(sources)
.with_msgid(String::from(msgid))
.with_comments(comment.into())
.with_comments(String::from(comment))
.done();
catalog.append_or_update(message);
}
Expand Down

0 comments on commit 5d87006

Please sign in to comment.