Drop dependency on try_from.
This bumps the minimum supported stable Rust version to 1.34. The TryFrom and TryInto traits are still reexported to not break the API, but these reexports are deprecated and will be removed in a future release.
This commit is contained in:
parent
0d893edb69
commit
5bf14b0b22
54 changed files with 91 additions and 92 deletions
|
|
@ -10,7 +10,7 @@ use crate::iq::{IqGetPayload, IqResultPayload, IqSetPayload};
|
|||
use crate::ns;
|
||||
use minidom::Element;
|
||||
use std::collections::HashMap;
|
||||
use try_from::TryFrom;
|
||||
use std::convert::TryFrom;
|
||||
|
||||
/// Query for registering against a service.
|
||||
#[derive(Debug, Clone)]
|
||||
|
|
@ -36,7 +36,7 @@ impl IqSetPayload for Query {}
|
|||
impl IqResultPayload for Query {}
|
||||
|
||||
impl TryFrom<Element> for Query {
|
||||
type Err = Error;
|
||||
type Error = Error;
|
||||
|
||||
fn try_from(elem: Element) -> Result<Query, Error> {
|
||||
check_self!(elem, "query", REGISTER, "IBR query");
|
||||
|
|
|
|||
Loading…
Reference in a new issue