Use full-qualified Result in pyobject_native_type_base
This commit is contained in:
parent
fbe7de1efb
commit
e85bb06e2b
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue