Skip to content

Commit 7a40648

Browse files
authored
Merge pull request #1662 from paolobarbolini/thiserror-v2
upgrade thiserror to v2.0.0
2 parents cf0c7ee + 0f0e4fe commit 7a40648

File tree

47 files changed

+156
-139
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+156
-139
lines changed

Cargo.lock

Lines changed: 110 additions & 90 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gitoxide-core/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ gix-status = { version = "^0.14.0", path = "../gix-status" }
5757
gix-fsck = { version = "^0.7.0", path = "../gix-fsck" }
5858
serde = { version = "1.0.114", optional = true, default-features = false, features = ["derive"] }
5959
anyhow = "1.0.42"
60-
thiserror = "1.0.34"
60+
thiserror = "2.0.0"
6161
bytesize = "1.0.1"
6262
tempfile = "3.1.0"
6363

gix-actor/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ serde = ["dep:serde", "bstr/serde", "gix-date/serde"]
2222
gix-date = { version = "^0.9.1", path = "../gix-date" }
2323
gix-utils = { version = "^0.1.13", path = "../gix-utils" }
2424

25-
thiserror = "1.0.38"
25+
thiserror = "2.0.0"
2626
bstr = { version = "1.3.0", default-features = false, features = [
2727
"std",
2828
"unicode",

gix-archive/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ flate2 = { version = "1.0.33", optional = true }
3636
zip = { version = "2.1.0", optional = true, default-features = false, features = ["deflate"] }
3737
jiff = { version = "0.1.2", default-features = false, features = ["std"] }
3838

39-
thiserror = "1.0.26"
39+
thiserror = "2.0.0"
4040
bstr = { version = "1.5.0", default-features = false }
4141

4242
tar = { version = "0.4.38", optional = true }

gix-attributes/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ bstr = { version = "1.3.0", default-features = false, features = ["std", "unicod
2828
smallvec = "1.10.0"
2929
kstring = "2.0.0"
3030
unicode-bom = { version = "2.0.3" }
31-
thiserror = "1.0.26"
31+
thiserror = "2.0.0"
3232
serde = { version = "1.0.114", optional = true, default-features = false, features = ["derive"] }
3333

3434
document-features = { version = "0.2.1", optional = true }

gix-bitmap/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ doctest = false
1616
test = true
1717

1818
[dependencies]
19-
thiserror = "1.0.38"
19+
thiserror = "2.0.0"
2020

2121
[dev-dependencies]
2222
gix-testtools = { path = "../tests/tools" }

gix-chunk/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ doctest = false
1717
test = false
1818

1919
[dependencies]
20-
thiserror = "1.0.34"
20+
thiserror = "2.0.0"

gix-commitgraph/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ gix-chunk = { version = "^0.4.9", path = "../gix-chunk" }
2727
bstr = { version = "1.3.0", default-features = false, features = ["std"] }
2828
memmap2 = "0.9.0"
2929
serde = { version = "1.0.114", optional = true, default-features = false, features = ["derive"] }
30-
thiserror = "1.0.26"
30+
thiserror = "2.0.0"
3131

3232
document-features = { version = "0.2.0", optional = true }
3333

gix-commitgraph/src/init.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,7 @@ pub enum Error {
3030
err: std::io::Error,
3131
path: PathBuf,
3232
},
33-
#[error(
34-
"Commit-graph files contain {0} commits altogether, but only {} commits are allowed",
35-
MAX_COMMITS
36-
)]
33+
#[error("Commit-graph files contain {0} commits altogether, but only {MAX_COMMITS} commits are allowed")]
3734
TooManyCommits(u64),
3835
}
3936

gix-config-value/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ serde = ["dep:serde", "bstr/serde"]
2121
[dependencies]
2222
gix-path = { version = "^0.10.12", path = "../gix-path" }
2323

24-
thiserror = "1.0.32"
24+
thiserror = "2.0.0"
2525
bstr = { version = "1.0.1", default-features = false, features = ["std"] }
2626
serde = { version = "1.0.114", optional = true, default-features = false, features = ["derive"] }
2727
bitflags = "2"

0 commit comments

Comments
 (0)