We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 147164a commit 320c3d4Copy full SHA for 320c3d4
1 file changed
src/message.rs
@@ -1,6 +1,6 @@
1
use pyo3::{
2
Py, Python,
3
- types::{PyAnyMethods, PyBytes, PyDict},
+ types::{PyBytes, PyDict},
4
};
5
6
use crate::{exceptions::rust_err::NatsrpyResult, utils::headers::NatsrpyHeadermapExt};
@@ -27,7 +27,7 @@ impl Message {
27
subject: message.subject.to_string(),
28
reply: message.reply.as_deref().map(ToString::to_string),
29
payload: PyBytes::new(py, &message.payload).unbind(),
30
- headers: headers,
+ headers,
31
status: message.status.map(Into::<u16>::into),
32
description: message.description,
33
length: message.length,
0 commit comments