Skip to content

Commit

Permalink
fix: Use ::std instead of std (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yag000 authored Mar 18, 2024
2 parents c4b90fb + dd0bfe0 commit 1bd8084
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ mod attributes;
/// Two,
/// }
///
/// impl std::fmt::Display for Numbers {
/// impl ::std::fmt::Display for Numbers {
/// fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
/// match self {
/// Self::One => write!(f, "One"),
Expand Down Expand Up @@ -150,7 +150,7 @@ mod attributes;
/// }
/// }
///
/// impl std::str::FromStr for Numbers {
/// impl ::std::str::FromStr for Numbers {
/// type Err = ();
///
/// fn from_str(s: &str) -> Result<Self, Self::Err> {
Expand Down Expand Up @@ -189,7 +189,7 @@ fn impl_display(
names: &Vec<syn::Ident>,
) -> TokenStream {
let gen = quote! {
impl std::fmt::Display for #name {
impl ::std::fmt::Display for #name {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
match self {
#(Self::#identifiers=> write!(f, stringify!(#names))),*
Expand Down Expand Up @@ -241,7 +241,7 @@ fn impl_from_string(name: &syn::Ident) -> TokenStream {
/// Implementation of [`std::str::FromStr`].
fn impl_from_str_trait(name: &syn::Ident) -> TokenStream {
let gen = quote! {
impl std::str::FromStr for #name {
impl ::std::str::FromStr for #name {
type Err = ();

fn from_str(s: &str) -> Result<Self, Self::Err> {
Expand Down

0 comments on commit 1bd8084

Please sign in to comment.