From 239c0a9f43e71ac564d7377b9da7969c7c8eed49 Mon Sep 17 00:00:00 2001 From: slonkazoid Date: Tue, 24 Dec 2024 23:56:36 +0300 Subject: [PATCH] remove unnecessary .file_type() --- src/post/blag.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/post/blag.rs b/src/post/blag.rs index 96d150c..06007e9 100644 --- a/src/post/blag.rs +++ b/src/post/blag.rs @@ -170,7 +170,7 @@ impl PostManager for Blag { let stat = tokio::fs::metadata(entry.path()).await?; - if stat.file_type().is_file() { + if stat.is_file() { let mut name = match entry.file_name().into_string() { Ok(v) => v, Err(_) => {