Skip to content

Commit

Permalink
updated derive crate to use hyphen rather than underscore
Browse files Browse the repository at this point in the history
updated bigerror-derive path

explicit derive version
  • Loading branch information
mkatychev committed Jul 26, 2024
1 parent 870e22d commit 2ce625e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ trybuild = "1.0.93"
proc-macro2 = "1.0.74"
quote = "1.0.35"
syn = "2.0.46"
bigerror-derive = { path = "./bigerror_derive", version = "0.9.0-alpha" }
thiserror-impl = "1.0.61"

[workspace.lints.clippy]
Expand Down
2 changes: 1 addition & 1 deletion bigerror/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ tonic = { workspace = true, optional = true }
tonic-types = { workspace = true, optional = true }
tracing-error = { workspace = true, optional = true, default-features = false }
tracing.workspace = true
bigerror_derive = { path = "../bigerror_derive" }
bigerror-derive = { workspace = true }

[dev-dependencies]
serde = { workspace = true, features = ["derive"] }
Expand Down
4 changes: 2 additions & 2 deletions bigerror/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ mod test {
#[derive(Default)]
struct MyStruct {
my_field: Option<()>,
string: String,
_string: String,
}

impl MyStruct {
Expand Down Expand Up @@ -721,7 +721,7 @@ mod test {
// this is meant to be a compile time test of the `__field!` macro
fn __field() {
let my_struct = MyStruct::default();
__field!(MyStruct::__field::<&str> | &my_struct.string);
__field!(MyStruct::__field::<&str> | &my_struct._string);
}

#[test]
Expand Down
2 changes: 1 addition & 1 deletion bigerror_derive/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "bigerror_derive"
name = "bigerror-derive"
version.workspace = true
edition.workspace = true
description.workspace = true
Expand Down

0 comments on commit 2ce625e

Please sign in to comment.