xso-proc: Use core instead of std wherever possible
This commit is contained in:
parent
5de1891f06
commit
1828fde78c
7 changed files with 43 additions and 43 deletions
|
|
@ -6,14 +6,14 @@
|
|||
|
||||
//! Infrastructure for contextual error messages
|
||||
|
||||
use std::fmt;
|
||||
use core::fmt;
|
||||
|
||||
use syn::*;
|
||||
|
||||
/// Reference to a compound field's parent
|
||||
///
|
||||
/// This reference can be converted to a hopefully-useful human-readable
|
||||
/// string via [`std::fmt::Display`].
|
||||
/// string via [`core::fmt::Display`].
|
||||
#[derive(Clone, Debug)]
|
||||
pub(super) enum ParentRef {
|
||||
/// The parent is addressable by a path, e.g. a struct type or enum
|
||||
|
|
@ -99,7 +99,7 @@ impl ParentRef {
|
|||
/// Ephemeral struct to create a nice human-readable representation of
|
||||
/// [`syn::Member`].
|
||||
///
|
||||
/// It implements [`std::fmt::Display`] for that purpose and is otherwise of
|
||||
/// It implements [`core::fmt::Display`] for that purpose and is otherwise of
|
||||
/// little use.
|
||||
#[repr(transparent)]
|
||||
struct FieldName<'x>(&'x Member);
|
||||
|
|
|
|||
Loading…
Reference in a new issue