Merge pull request #324 from athre0z/add-crate-prefix

Add $crate:: prefix in create_exception!
This commit is contained in:
konstin 2019-01-14 14:40:45 +01:00 committed by GitHub
commit f9baa700d8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -171,9 +171,9 @@ macro_rules! create_exception {
#[allow(non_camel_case_types)] // E.g. `socket.herror`
pub struct $name;
impl_exception_boilerplate!($name);
$crate::impl_exception_boilerplate!($name);
create_exception_type_object!($module, $name, $base);
$crate::create_exception_type_object!($module, $name, $base);
};
}