Skip to content

Commit

Permalink
serde.rs: str_option: Fix type infer error (#670)
Browse files Browse the repository at this point in the history
This error is caused by latest `arrayvec` crate which now implements 2 different versions `AsRef` traits.
  • Loading branch information
shank03 authored Aug 17, 2024
1 parent dd711db commit f31e85a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/serde.rs
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ pub mod str_option {
match *value {
Some(ref decimal) => {
let decimal = crate::str::to_str_internal(decimal, true, None);
serializer.serialize_some(decimal.0.as_ref())
serializer.serialize_some::<str>(decimal.0.as_ref())
}
None => serializer.serialize_none(),
}
Expand Down

1 comment on commit f31e85a

@base1172
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The most recently released rust_decimal crate on crates.io (v1.35.0) is currently broken. This commit fixes the issue.

Can you release a new crate that includes this commit? At the moment, any projects that depend on rust_decimal are failing to compile.

Please sign in to comment.