Skip to content

Commit

Permalink
Merge pull request #34 from dark0dave/chore/preCommitUpdate
Browse files Browse the repository at this point in the history
chore(pre-commit): Update pre-commit
  • Loading branch information
dark0dave authored Nov 25, 2023
2 parents cdc6f49 + 71a6e5a commit 9b16e85
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
8 changes: 7 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ repos:
hooks:
- id: forbid-crlf
- id: remove-crlf
files: '*rs'

- repo: https://github.com/commitizen-tools/commitizen
rev: 3.12.0
Expand All @@ -46,3 +45,10 @@ repos:
language: system
types: [rust]
pass_filenames: false

- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
hooks:
- id: codespell
args:
- '--ignore-words-list=crate'
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Additional information can be shown with:
RUST_LOG=INFO mod_installer [OPTIONS]
```

For line by line debuging:
For line by line debugging:
```sh
RUST_LOG=DEBUG mod_installer [OPTIONS]
```
Expand Down
4 changes: 2 additions & 2 deletions src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ pub fn mod_folder_present_in_game_directory(game_directory: &Path, mod_name: &st
pub fn copy_mod_folder(game_directory: &Path, mod_folder: &Path) {
let mut options = CopyOptions::new();
options.skip_exist = true;
let coppied = copy(mod_folder, game_directory, &options);
if let Err(error) = coppied {
let copied = copy(mod_folder, game_directory, &options);
if let Err(error) = copied {
log::error!("Failed to copy with error: {}", error);
panic!()
}
Expand Down
2 changes: 1 addition & 1 deletion src/weidu_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ pub fn parse_raw_output(sender: Sender<State>, receiver: Receiver<String>) {
current_state = ParserState::WaitingForMoreQuestionContent;
}
ParserState::WaitingForMoreQuestionContent => {
log::debug!("No new weidu otput, sending question to user");
log::debug!("No new weidu output, sending question to user");
sender
.send(State::RequiresInput { question })
.expect("Failed to send question");
Expand Down

0 comments on commit 9b16e85

Please sign in to comment.