Skip to content

Commit 22ea08d

Browse files
committed
refactor(cli): Satiate Clippy lints
1 parent edd9fa4 commit 22ea08d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/i18n.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ pub struct LocalText<'a> {
8585

8686
impl<'a> LocalText<'a> {
8787
/// Make a new localizable text placeholder for a Fluent key with no args
88-
pub fn new(key: &str) -> LocalText {
88+
pub fn new(key: &str) -> LocalText<'_> {
8989
LocalText {
9090
key: String::from(key),
9191
args: None,

src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#![doc = include_str!("../README.md")]
2-
#![allow(clippy::trivial_regex)]
32
#![allow(clippy::borrowed_box)]
3+
#![allow(clippy::doc_overindented_list_items)]
4+
#![allow(clippy::trivial_regex)]
45

56
#[macro_use]
67
extern crate lazy_static;

0 commit comments

Comments
 (0)