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:
Emmanuel Gil Peyrot 2019-04-12 10:58:42 +02:00
commit 5bf14b0b22
54 changed files with 91 additions and 92 deletions

View file

@ -17,7 +17,7 @@ use minidom::Element;
use sha1::Sha1;
use sha2::{Sha256, Sha512};
use sha3::{Sha3_256, Sha3_512};
use try_from::TryFrom;
use std::convert::TryFrom;
/// Represents a capability hash for a given client.
#[derive(Debug, Clone)]
@ -40,7 +40,7 @@ pub struct Caps {
impl PresencePayload for Caps {}
impl TryFrom<Element> for Caps {
type Err = Error;
type Error = Error;
fn try_from(elem: Element) -> Result<Caps, Error> {
check_self!(elem, "c", CAPS, "caps");