aboutsummaryrefslogtreecommitdiffstats
path: root/stanza/src/xep_0300.rs
diff options
context:
space:
mode:
Diffstat (limited to 'stanza/src/xep_0300.rs')
-rw-r--r--stanza/src/xep_0300.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/stanza/src/xep_0300.rs b/stanza/src/xep_0300.rs
index 9efad46..71a2c36 100644
--- a/stanza/src/xep_0300.rs
+++ b/stanza/src/xep_0300.rs
@@ -1,16 +1,16 @@
-use std::str::FromStr;
+use std::{convert::Infallible, str::FromStr};
use peanuts::{
element::{FromElement, IntoElement},
- DeserializeError, Element,
+ Element,
};
pub const XMLNS: &str = "urn:xmpp:hashes:2";
#[derive(Debug, Clone)]
pub struct Hash {
- algo: Algo,
- hash: String,
+ pub algo: Algo,
+ pub hash: String,
}
impl FromElement for Hash {
@@ -82,7 +82,7 @@ pub enum Algo {
}
impl FromStr for Algo {
- type Err = DeserializeError;
+ type Err = Infallible;
fn from_str(s: &str) -> Result<Self, Self::Err> {
match s {