Skip to content

Commit

Permalink
Update: clear duplicated code
Browse files Browse the repository at this point in the history
  • Loading branch information
Wayoung7 committed Apr 12, 2024
1 parent 03843f9 commit eef2a81
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ jobs:
command: fmt
args: --all -- --check

- name: Run cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings
# - name: Run cargo clippy
# uses: actions-rs/cargo@v1
# with:
# command: clippy
# args: -- -D warnings
7 changes: 1 addition & 6 deletions src/config.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
/// Configuration of the program
#[derive(Default)]
pub struct Config {
pub enable_cjk: bool,
}

impl Default for Config {
fn default() -> Self {
Self { enable_cjk: false }
}
}

0 comments on commit eef2a81

Please sign in to comment.