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
  • Loading branch information
mkatychev committed Jul 26, 2024
1 parent 870e22d commit c9679e9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
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 = { path = "../bigerror_derive" }

[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 c9679e9

Please sign in to comment.