Use full-qualified Result in pyobject_native_type_base

This commit is contained in:
Matthew Neeley 2021-01-25 11:21:22 -08:00
parent fbe7de1efb
commit e85bb06e2b
1 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ macro_rules! pyobject_native_type_base(
impl<$($generics,)*> std::fmt::Debug for $name {
fn fmt(&self, f: &mut std::fmt::Formatter)
-> Result<(), std::fmt::Error>
-> std::result::Result<(), std::fmt::Error>
{
let s = self.repr().map_err(|_| std::fmt::Error)?;
f.write_str(&s.to_string_lossy())
@ -44,7 +44,7 @@ macro_rules! pyobject_native_type_base(
impl<$($generics,)*> std::fmt::Display for $name {
fn fmt(&self, f: &mut std::fmt::Formatter)
-> Result<(), std::fmt::Error>
-> std::result::Result<(), std::fmt::Error>
{
let s = self.str().map_err(|_| std::fmt::Error)?;
f.write_str(&s.to_string_lossy())