Skip to content

Commit 1c17e73

Browse files
committed
Fix some lints in i18n-config
1 parent 8f43993 commit 1c17e73

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

i18n-config/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@ impl<'a> Crate<'a> {
141141
/// [I18nConfig#active_config()](I18nConfig#active_config()),
142142
/// otherwise return None.
143143
pub fn parent_active_config(
144-
&'a self,
145-
) -> Result<Option<(&'a Crate, &'a I18nConfig)>, I18nConfigError> {
144+
&self,
145+
) -> Result<Option<(&'_ Crate, &'_ I18nConfig)>, I18nConfigError> {
146146
match self.parent {
147147
Some(parent) => parent.active_config(),
148148
None => Ok(None),
@@ -152,7 +152,7 @@ impl<'a> Crate<'a> {
152152
/// Identify the config which should be used for this crate, and
153153
/// the crate (either this crate or one of it's parents)
154154
/// associated with that config.
155-
pub fn active_config(&'a self) -> Result<Option<(&'a Crate, &'a I18nConfig)>, I18nConfigError> {
155+
pub fn active_config(&self) -> Result<Option<(&'_ Crate, &'_ I18nConfig)>, I18nConfigError> {
156156
debug!("Resolving active config for {0}", self);
157157
match &self.i18n_config {
158158
Some(config) => {

0 commit comments

Comments
 (0)