We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d283298 commit 0c238d6Copy full SHA for 0c238d6
src/message.rs
@@ -22,8 +22,8 @@ impl EncodedMessage {
22
base64::decode(&self.data)
23
}
24
25
- pub fn attributes(&self) -> &Option<HashMap<String, String>> {
26
- &self.attributes
+ pub fn attributes(&self) -> Option<&HashMap<String, String>> {
+ self.attributes.as_ref()
27
28
29
pub fn new<T: serde::Serialize>(data: &T, attributes: Option<HashMap<String, String>>) -> Self {
0 commit comments