mirror of
https://github.com/tealdeer-rs/tealdeer.git
synced 2026-08-09 09:49:10 +02:00
Fix clippy lints added in 1.57 (#225)
This commit is contained in:
parent
746d4dadda
commit
9c90f8ba7a
2 changed files with 2 additions and 1 deletions
|
|
@ -312,7 +312,7 @@ impl Cache {
|
|||
let extension = &path.extension().and_then(OsStr::to_str).unwrap_or("");
|
||||
if e.file_type().is_file() && extension == &"md" {
|
||||
path.file_stem()
|
||||
.and_then(|stem| stem.to_str().map(|s| s.into()))
|
||||
.and_then(|stem| stem.to_str().map(Into::into))
|
||||
} else {
|
||||
None
|
||||
}
|
||||
|
|
|
|||
|
|
@ -75,6 +75,7 @@ struct RawStyle {
|
|||
pub italic: bool,
|
||||
}
|
||||
|
||||
#[allow(clippy::derivable_impls)] // Explicitly control defaults
|
||||
impl Default for RawStyle {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue