Skip to content

Commit f8ec92d

Browse files
committed
chore: update version to 0.7.0 and add clippy CI job
- Bump version from 0.6.0 to 0.7.0 in Cargo.toml and Cargo.lock - Update installation command in README and README_CN - Add new clippy job to GitHub Actions CI workflow Signed-off-by: jinlong <jinlong@tencent.com>
1 parent 71dce29 commit f8ec92d

6 files changed

Lines changed: 31 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,29 @@ jobs:
5555
5656
- name: Run tests
5757
run: cargo test --verbose
58+
59+
clippy:
60+
name: Clippy
61+
runs-on: ubuntu-latest
62+
steps:
63+
- name: Checkout code
64+
uses: actions/checkout@v4
65+
66+
- name: Install Rust toolchain
67+
uses: dtolnay/rust-toolchain@stable
68+
with:
69+
components: clippy
70+
71+
- name: Cache cargo registry
72+
uses: actions/cache@v4
73+
with:
74+
path: |
75+
~/.cargo/registry
76+
~/.cargo/git
77+
target
78+
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
79+
restore-keys: |
80+
${{ runner.os }}-cargo-
81+
82+
- name: Run clippy
83+
run: cargo clippy --all-targets --all-features -- -D warnings

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "fastcommit"
3-
version = "0.6.0"
3+
version = "0.7.0"
44
description = "AI-based command line tool to quickly generate standardized commit messages."
55
edition = "2021"
66
authors = ["longjin <fslongjin@vip.qq.com>"]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ You can install `fastcommit` using the following method:
1010

1111
```bash
1212
# Install using cargo
13-
cargo install --git https://github.com/fslongjin/fastcommit --tag v0.6.0
13+
cargo install --git https://github.com/fslongjin/fastcommit --tag v0.7.0
1414
```
1515

1616

README_CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
```bash
1010
# 使用 cargo 安装
11-
cargo install --git https://github.com/fslongjin/fastcommit --tag v0.6.0
11+
cargo install --git https://github.com/fslongjin/fastcommit --tag v0.7.0
1212
```
1313

1414
## 使用

src/text_wrapper/text_wrapper.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ impl WordWrapper for WordBoundaryWrapper {
5757
}
5858

5959
// 字符包装器
60+
#[allow(dead_code)]
6061
pub struct CharacterWrapper;
6162

6263
impl WordWrapper for CharacterWrapper {

0 commit comments

Comments
 (0)