History

thanks clippy

Sebastian Thiel committed 4 years ago

Commit 60da03c1 parent c7fcb5e1 file · +1 −1Browse files

Unified · Split

git-config/src/file/git_config.rs+1−1
@@ -486,7 +486,7 @@ impl<'event> GitConfig<'event> { · 485 unmodified lines
486486 let key =
487487 env::var(format!("GIT_CONFIG_KEY_{}", i)).map_err(|_| from_env::Error::InvalidKeyId { key_id: i })?;
488488 let value = env::var_os(format!("GIT_CONFIG_VALUE_{}", i))
489− .ok_or_else(|| from_env::Error::InvalidValueId { value_id: i })?;
489+ .ok_or(from_env::Error::InvalidValueId { value_id: i })?;
490490 if let Some((section_name, maybe_subsection)) = key.split_once('.') {
491491 let (subsection, key) = if let Some((subsection, key)) = maybe_subsection.rsplit_once('.') {
492492 (Some(subsection), key)