Skip to content

Commit

Permalink
Fix never type fallback (#281)
Browse files Browse the repository at this point in the history
* fix warning generated by never type fallback change in edition 2024

* bumped version and updated changelog

* fix warning generated by never type fallback change in edition 2024

* bumped version and updated changelog
  • Loading branch information
minghuaw authored Sep 7, 2024
1 parent 660feb7 commit 80fdf71
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion serde_amqp/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "serde_amqp"
version = "0.12.2"
version = "0.12.3"
edition = "2021"
description = "A serde implementation of AMQP1.0 protocol."
license = "MIT/Apache-2.0"
Expand Down
5 changes: 5 additions & 0 deletions serde_amqp/Changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Change Log

## 0.12.3

1. Fix warning caused by [changes to never type fallback for edition
2024](https://github.com/rust-lang/rust/issues/123748)

## 0.12.2

1. Fixed bug caused by not creating new `SizeSerializer` in `SerializeSeq::serialize_element` (issue #279)
Expand Down
2 changes: 1 addition & 1 deletion serde_amqp/src/value/de.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ impl<'de> de::Visitor<'de> for ValueVisitor {
Ok(Value::Described(val))
}
ValueType::Null => {
de.newtype_variant()?;
de.newtype_variant::<()>()?;
Ok(Value::Null)
}
ValueType::Bool => {
Expand Down

0 comments on commit 80fdf71

Please sign in to comment.