diff options
Diffstat (limited to 'third_party/rust/core-foundation/src/error.rs')
-rw-r--r-- | third_party/rust/core-foundation/src/error.rs | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/third_party/rust/core-foundation/src/error.rs b/third_party/rust/core-foundation/src/error.rs index f100171bc9..e5a2242596 100644 --- a/third_party/rust/core-foundation/src/error.rs +++ b/third_party/rust/core-foundation/src/error.rs @@ -14,11 +14,10 @@ pub use core_foundation_sys::error::*; use std::error::Error; use std::fmt; -use base::{CFIndex, TCFType}; -use string::CFString; +use crate::base::{CFIndex, TCFType}; +use crate::string::CFString; - -declare_TCFType!{ +declare_TCFType! { /// An error value. CFError, CFErrorRef } @@ -27,10 +26,10 @@ impl_TCFType!(CFError, CFErrorRef, CFErrorGetTypeID); impl fmt::Debug for CFError { fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { fmt.debug_struct("CFError") - .field("domain", &self.domain()) - .field("code", &self.code()) - .field("description", &self.description()) - .finish() + .field("domain", &self.domain()) + .field("code", &self.code()) + .field("description", &self.description()) + .finish() } } |