From 6d642ba4a2fd14f26ab42881cf35af7080f0d5b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Sch=C3=A4fer?= Date: Tue, 18 Jun 2024 17:16:35 +0200 Subject: [PATCH] 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. --- xso/src/error.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/xso/src/error.rs b/xso/src/error.rs index 15728f6..b1ea2cf 100644 --- a/xso/src/error.rs +++ b/xso/src/error.rs @@ -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 // 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/. -use std::fmt; +use core::fmt; use rxml::error::XmlError; @@ -65,8 +65,8 @@ impl From for Error { } } -impl From for Error { - fn from(other: std::convert::Infallible) -> Self { +impl From for Error { + fn from(other: core::convert::Infallible) -> Self { match other {} } } @@ -97,8 +97,8 @@ impl From for FromEventsError { } } -impl From for FromEventsError { - fn from(other: std::convert::Infallible) -> Self { +impl From for FromEventsError { + fn from(other: core::convert::Infallible) -> Self { match other {} } }