Skip to content

Commit

Permalink
fix: bump versions and follow clippy advice
Browse files Browse the repository at this point in the history
  • Loading branch information
PurpleBooth committed Jan 11, 2025
1 parent 47214f8 commit 9d07720
Show file tree
Hide file tree
Showing 14 changed files with 748 additions and 376 deletions.
972 changes: 672 additions & 300 deletions Cargo.lock

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions git-mit-config/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ repository = "https://github.com/PurpleBooth/git-mit"
description = "A command for enabling and disabling git lints"

[dependencies]
mit-lint = "3.2.8"
mit-lint = "3.2.9"
shell-words = "1.1.0"
thiserror = "1.0.63"
miette = { version = "7.2.0", features = [ "fancy" ] }
thiserror = "1.0.69"
miette = { version = "7.4.0", features = [ "fancy" ] }
git2 = "0.19.0"
openssl = { version = "0.10.66", optional = true }
clap_complete = "4.5.23"
clap = { version = "4.5.16", features = ["derive", "cargo", "wrap_help", "env", "unicode" ] }
openssl = { version = "0.10.68", optional = true }
clap_complete = "4.5.42"
clap = { version = "4.5.26", features = ["derive", "cargo", "wrap_help", "env", "unicode" ] }

comfy-table = "7.1.1"
comfy-table = "7.1.3"

[dependencies.mit-commit-message-lints]
path = "../mit-commit-message-lints"
Expand Down
14 changes: 7 additions & 7 deletions git-mit-install/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ readme = "../README.md"
repository = "https://github.com/PurpleBooth/git-mit"

[dependencies]
which = "7.0.0"
thiserror = "1.0.63"
miette = { version = "7.2.0", features = [ "fancy" ] }
clap_complete = "4.5.23"
clap = { version = "4.5.16", features = ["derive", "cargo", "wrap_help", "env", "unicode" ] }
which = "7.0.1"
thiserror = "1.0.69"
miette = { version = "7.4.0", features = [ "fancy" ] }
clap_complete = "4.5.42"
clap = { version = "4.5.26", features = ["derive", "cargo", "wrap_help", "env", "unicode" ] }


git2 = "0.19.0"
openssl = { version = "0.10.66", optional = true }
openssl = { version = "0.10.68", optional = true }

indoc = "2.0.5"

Expand All @@ -30,7 +30,7 @@ version = "5.14.2"
[dev-dependencies]
quickcheck = "1.0.3"
quickcheck_macros = "1.0.0"
tempfile = "3.12.0"
tempfile = "3.15.0"

[dev-dependencies.mit-hook-test-helper]
path = "../mit-hook-test-helper"
Expand Down
12 changes: 6 additions & 6 deletions git-mit-relates-to/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ readme = "../README.md"
repository = "https://github.com/PurpleBooth/git-mit"

[dependencies]
thiserror = "1.0.63"
miette = { version = "7.2.0", features = [ "fancy" ] }
clap_complete = "4.5.23"
clap = { version = "4.5.16", features = ["derive", "cargo", "wrap_help", "env", "unicode" ] }
thiserror = "1.0.69"
miette = { version = "7.4.0", features = [ "fancy" ] }
clap_complete = "4.5.42"
clap = { version = "4.5.26", features = ["derive", "cargo", "wrap_help", "env", "unicode" ] }
git2 = "0.19.0"
openssl = { version = "0.10.66", optional = true }
openssl = { version = "0.10.68", optional = true }


[dependencies.mit-commit-message-lints]
Expand All @@ -33,7 +33,7 @@ vendored-openssl = ["openssl/vendored"]
quickcheck = "1.0.3"
quickcheck_macros = "1.0.0"
indoc = "2.0.5"
tempfile = "3.12.0"
tempfile = "3.15.0"

[dev-dependencies.mit-hook-test-helper]
path = "../mit-hook-test-helper"
Expand Down
7 changes: 4 additions & 3 deletions git-mit-relates-to/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,10 @@ fn is_hook_present() -> bool {
.and_then(|path| Repository::discover(path).ok())
.map(|repo| repo.path().join("hooks").join("commit-msg"))
.filter(|path_buf| {
path_buf.canonicalize().ok().map_or(false, |path| {
path.to_string_lossy().contains("mit-commit-msg")
})
path_buf
.canonicalize()
.ok()
.is_some_and(|path| path.to_string_lossy().contains("mit-commit-msg"))
})
.is_some()
}
Expand Down
12 changes: 6 additions & 6 deletions git-mit/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ repository = "https://github.com/PurpleBooth/git-mit"
[dependencies]
shell-words = "1.1.0"
indoc = "2.0.5"
thiserror = "1.0.63"
miette = { version = "7.2.0", features = [ "fancy" ] }
clap_complete = "4.5.23"
clap = { version = "4.5.16", features = ["derive", "cargo", "wrap_help", "env", "unicode" ] }
thiserror = "1.0.69"
miette = { version = "7.4.0", features = [ "fancy" ] }
clap_complete = "4.5.42"
clap = { version = "4.5.26", features = ["derive", "cargo", "wrap_help", "env", "unicode" ] }
git2 = "0.19.0"
openssl = { version = "0.10.66", optional = true }
openssl = { version = "0.10.68", optional = true }


[dependencies.mit-commit-message-lints]
Expand All @@ -28,7 +28,7 @@ version = "5.14.2"
[dev-dependencies]
quickcheck = "1.0.3"
quickcheck_macros = "1.0.0"
tempfile = "3.12.0"
tempfile = "3.15.0"

[dev-dependencies.mit-hook-test-helper]
path = "../mit-hook-test-helper"
Expand Down
7 changes: 4 additions & 3 deletions git-mit/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,10 @@ fn is_hook_present() -> bool {
.and_then(|path| Repository::discover(path).ok())
.map(|repo| repo.path().join("hooks").join("commit-msg"))
.filter(|path_buf| {
path_buf.canonicalize().ok().map_or(false, |path| {
path.to_string_lossy().contains("mit-commit-msg")
})
path_buf
.canonicalize()
.ok()
.is_some_and(|path| path.to_string_lossy().contains("mit-commit-msg"))
})
.is_some()
}
Expand Down
26 changes: 13 additions & 13 deletions mit-commit-message-lints/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,27 +14,27 @@ description = "Check the correctness of a specific commit message. Designed to b

[dependencies]
shell-words = "1.1.0"
time = { version = "0.3.36", features = ["local-offset"] }
glob = "0.3.1"
thiserror = "1.0.63"
miette = { version = "7.2.0", features = [ "fancy" ] }
time = { version = "0.3.37", features = ["local-offset"] }
glob = "0.3.2"
thiserror = "1.0.69"
miette = { version = "7.4.0", features = [ "fancy" ] }
git2 = "0.19.0"
openssl = { version = "0.10.66", optional = true }
regex = "1.11.0"
openssl = { version = "0.10.68", optional = true }
regex = "1.11.1"
serde_yaml = "0.9.34"
serde_derive = "1.0.209"
serde_derive = "1.0.217"
indoc = "2.0.5"
toml = "0.8.19"
mit-commit = "3.2.0"
mit-lint = "3.2.8"
comfy-table = "7.1.1"
clap_complete = "4.5.23"
clap = { version = "4.5.16", features = ["derive", "cargo", "wrap_help", "env", "unicode" ] }
mit-commit = "3.2.1"
mit-lint = "3.2.9"
comfy-table = "7.1.3"
clap_complete = "4.5.42"
clap = { version = "4.5.26", features = ["derive", "cargo", "wrap_help", "env", "unicode" ] }
quickcheck_macros = "1.0.0"
quickcheck = "1.0.3"

[dependencies.serde]
version = "1.0.209"
version = "1.0.217"
features = [ "derive" ]

[dev-dependencies]
Expand Down
1 change: 0 additions & 1 deletion mit-commit-message-lints/src/mit/cmd/set_commit_authors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ fn get_defined_vcs_coauthor_keys(config: &dyn Vcs) -> Vec<String> {
]
.into_iter()
})
.map(String::from)
.collect()
}

Expand Down
20 changes: 10 additions & 10 deletions mit-commit-msg/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,25 @@ readme = "../README.md"
repository = "https://github.com/PurpleBooth/git-mit"

[dependencies]
thiserror = "1.0.63"
tokio = { version = "1.40.0", features = ["full"] }
mit-lint = "3.2.8"
clap_complete = "4.5.23"
clap = { version = "4.5.16", features = ["derive", "cargo", "wrap_help", "env", "unicode" ] }
thiserror = "1.0.69"
tokio = { version = "1.43.0", features = ["full"] }
mit-lint = "3.2.9"
clap_complete = "4.5.42"
clap = { version = "4.5.26", features = ["derive", "cargo", "wrap_help", "env", "unicode" ] }
git2 = "0.19.0"
openssl = { version = "0.10.66", optional = true }
miette = { version = "7.2.0", features = [ "fancy" ] }
mit-commit = "3.2.0"
openssl = { version = "0.10.68", optional = true }
miette = { version = "7.4.0", features = [ "fancy" ] }
mit-commit = "3.2.1"

arboard = "3.4.0"
arboard = "3.4.1"

[dependencies.mit-commit-message-lints]
path = "../mit-commit-message-lints"
version = "5.14.2"

[dev-dependencies]
indoc = "2.0.5"
tempfile = "3.12.0"
tempfile = "3.15.0"


[dev-dependencies.mit-hook-test-helper]
Expand Down
5 changes: 2 additions & 3 deletions mit-commit-msg/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
missing_docs
)]

use std::{convert::TryFrom, env, io::stdout, path::PathBuf};
use std::{convert::TryFrom, env, io::stdout};

use arboard::Clipboard;
use clap::{CommandFactory, Parser};
Expand Down Expand Up @@ -44,8 +44,7 @@ async fn main() -> Result<()> {

let commit_file_path = cli_args
.commit_file_path
.ok_or(errors::MitCommitMsgError::CommitPathMissing)
.map(PathBuf::from)?;
.ok_or(errors::MitCommitMsgError::CommitPathMissing)?;
let commit_message = CommitMessage::try_from(commit_file_path).into_diagnostic()?;
let current_dir = env::current_dir().into_diagnostic()?;

Expand Down
4 changes: 2 additions & 2 deletions mit-hook-test-helper/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ repository = "https://github.com/PurpleBooth/git-mit"
description = "Testing help tools for git-mit"

[dependencies]
tempfile = "3.12.0"
tempfile = "3.15.0"
git2 = "0.19.0"
openssl = { version = "0.10.66", optional = true }
openssl = { version = "0.10.68", optional = true }



Expand Down
14 changes: 7 additions & 7 deletions mit-pre-commit/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ readme = "../README.md"
repository = "https://github.com/PurpleBooth/git-mit"

[dependencies]
time = "0.3.36"
thiserror = "1.0.63"
miette = { version = "7.2.0", features = [ "fancy" ] }
clap_complete = "4.5.23"
clap = { version = "4.5.16", features = ["derive", "cargo", "wrap_help", "env", "unicode" ] }
time = "0.3.37"
thiserror = "1.0.69"
miette = { version = "7.4.0", features = [ "fancy" ] }
clap_complete = "4.5.42"
clap = { version = "4.5.26", features = ["derive", "cargo", "wrap_help", "env", "unicode" ] }
git2 = "0.19.0"
openssl = { version = "0.10.66", optional = true }
mit-commit = "3.2.0"
openssl = { version = "0.10.68", optional = true }
mit-commit = "3.2.1"



Expand Down
16 changes: 8 additions & 8 deletions mit-prepare-commit-msg/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@ repository = "https://github.com/PurpleBooth/git-mit"

[dependencies]
tinytemplate = "1.2.1"
thiserror = "1.0.63"
miette = { version = "7.2.0", features = [ "fancy" ] }
thiserror = "1.0.69"
miette = { version = "7.4.0", features = [ "fancy" ] }
shell-words = "1.1.0"
clap_complete = "4.5.23"
clap = { version = "4.5.16", features = ["derive", "cargo", "wrap_help", "env", "unicode" ] }
clap_complete = "4.5.42"
clap = { version = "4.5.26", features = ["derive", "cargo", "wrap_help", "env", "unicode" ] }
git2 = "0.19.0"
openssl = { version = "0.10.66", optional = true }
mit-commit = "3.2.0"
openssl = { version = "0.10.68", optional = true }
mit-commit = "3.2.1"



[dependencies.serde]
version = "1.0.209"
version = "1.0.217"
features = [ "derive" ]

[dependencies.mit-commit-message-lints]
Expand All @@ -40,7 +40,7 @@ vendored-openssl = ["openssl/vendored"]
[dev-dependencies]
indoc = "2.0.5"

tempfile = "3.12.0"
tempfile = "3.15.0"

[dev-dependencies.mit-hook-test-helper]
path = "../mit-hook-test-helper"
Expand Down

0 comments on commit 9d07720

Please sign in to comment.