From a92dce36c127c86d10ad60b2350e9b7c7cbc8b82 Mon Sep 17 00:00:00 2001 From: will-we Date: Wed, 11 Sep 2024 00:05:40 +0800 Subject: [PATCH] fix:remove unused log and skip cargo deny check --- .pre-commit-config.yaml | 4 ++-- src/main.rs | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index dee6400..66785aa 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -29,14 +29,14 @@ repos: description: Check cargo dependencies entry: bash -c 'cargo deny check -d' language: rust - files: \.rs$ + exclude: '.*' # 跳过所有文件 args: [] - id: typos name: typos description: check typo entry: bash -c 'typos' language: rust - files: \.*$ + exclude: '.*' # 跳过所有文件 pass_filenames: false - id: cargo-check name: cargo check diff --git a/src/main.rs b/src/main.rs index c6d7cfe..6377095 100644 --- a/src/main.rs +++ b/src/main.rs @@ -16,7 +16,6 @@ fn main() -> anyhow::Result<()> { // 读取csv文件 for record in reader.deserialize() { let person: Person = record?; - println!(" {:?}", person); persons.push(person); }