mirror of
https://gitlab.com/xmpp-rs/xmpp-rs.git
synced 2024-07-12 22:21:53 +00:00
xso: pull fmt from core
We don't mark this crate as no_std for now, because its dependencies aren't no_std, but we want to be prepared.
This commit is contained in:
parent
17a38f190b
commit
6d642ba4a2
1 changed files with 5 additions and 5 deletions
|
@ -8,7 +8,7 @@ This module contains the error types used throughout the `xso` crate.
|
||||||
// This Source Code Form is subject to the terms of the Mozilla Public
|
// This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
use std::fmt;
|
use core::fmt;
|
||||||
|
|
||||||
use rxml::error::XmlError;
|
use rxml::error::XmlError;
|
||||||
|
|
||||||
|
@ -65,8 +65,8 @@ impl From<rxml::strings::Error> for Error {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl From<std::convert::Infallible> for Error {
|
impl From<core::convert::Infallible> for Error {
|
||||||
fn from(other: std::convert::Infallible) -> Self {
|
fn from(other: core::convert::Infallible) -> Self {
|
||||||
match other {}
|
match other {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -97,8 +97,8 @@ impl From<Error> for FromEventsError {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl From<std::convert::Infallible> for FromEventsError {
|
impl From<core::convert::Infallible> for FromEventsError {
|
||||||
fn from(other: std::convert::Infallible) -> Self {
|
fn from(other: core::convert::Infallible) -> Self {
|
||||||
match other {}
|
match other {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue