Skip to content

Commit cfd84aa

Browse files
committed
Fix unsafe impl in the define_extern_type macro
Release 0.1.4
1 parent cc364fa commit cfd84aa

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "static-reflect"
3-
version = "0.1.3"
3+
version = "0.1.4"
44
edition = "2018"
55
description = "Static type information, giving a form of compile-time reflection"
66
license = "MIT"

src/macros.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
/// See [TypeInfo::Extern](crate::types::TypeInfo::Extern)
44
#[macro_export]
55
macro_rules! define_extern_type {
6-
($target:ident) => (define_extern_type!($target => $target););
6+
($target:ident) => ($crate::define_extern_type!($target => $target););
77
($target:ty => $defined_path:path) => {
8-
impl ::static_reflect::StaticReflect for $target {
8+
unsafe impl ::static_reflect::StaticReflect for $target {
99
const TYPE_INFO: $crate::TypeInfo<'static> = $crate::TypeInfo::Extern {
1010
name: stringify!($defined_path)
1111
};

0 commit comments

Comments
 (0)