Skip to content

Commit

Permalink
fix: Fully qualify Result path in macro (#8)
Browse files Browse the repository at this point in the history
* fix: Fully qualify Result path in macro

* fix: use `{std_crate}` formatting
  • Loading branch information
actioninja committed Apr 21, 2023
1 parent 2271d47 commit a7edf5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,12 +182,12 @@ pub fn derive_error(input: TokenStream) -> TokenStream {
format!(
r#"impl ::{std_crate}::fmt::Display for {name} {{
fn fmt(&self, f: &mut ::{std_crate}::fmt::Formatter<'_>) ->
Result<(), ::{std_crate}::fmt::Error>
::{std_crate}::result::Result<(), ::{std_crate}::fmt::Error>
{{
match self {{
{display_matches}
}}
Ok(())
::{std_crate}::result::Result::Ok(())
}}
}}"#
)
Expand Down

0 comments on commit a7edf5b

Please sign in to comment.