mirror of
https://github.com/tealdeer-rs/tealdeer.git
synced 2026-08-23 16:44:18 +02:00
Fix clippy lints
This commit is contained in:
parent
39094354b6
commit
43157e78c7
2 changed files with 6 additions and 5 deletions
|
|
@ -188,10 +188,10 @@ impl<'a> Cache<'a> {
|
|||
};
|
||||
|
||||
for entry in file_iter {
|
||||
if let Some(extension) = entry?.path().extension() {
|
||||
if extension == "page" || extension == "patch" {
|
||||
return Ok(true);
|
||||
}
|
||||
if let Some(extension) = entry?.path().extension()
|
||||
&& (extension == "page" || extension == "patch")
|
||||
{
|
||||
return Ok(true);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@ use clap::ValueEnum;
|
|||
use log::info;
|
||||
use serde::Serialize as _;
|
||||
use serde_derive::{Deserialize, Serialize};
|
||||
use toml::map::Map;
|
||||
use yansi::{Color, Style};
|
||||
|
||||
use crate::{
|
||||
|
|
@ -816,7 +817,7 @@ impl ConfigLoader {
|
|||
|
||||
entry = entry_table
|
||||
.entry(subkey)
|
||||
.or_insert(toml::Value::Table(Default::default()));
|
||||
.or_insert(toml::Value::Table(Map::default()));
|
||||
}
|
||||
|
||||
*entry = value;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue