We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc364fa commit cfd84aaCopy full SHA for cfd84aa
Cargo.toml
@@ -1,6 +1,6 @@
1
[package]
2
name = "static-reflect"
3
-version = "0.1.3"
+version = "0.1.4"
4
edition = "2018"
5
description = "Static type information, giving a form of compile-time reflection"
6
license = "MIT"
src/macros.rs
@@ -3,9 +3,9 @@
/// See [TypeInfo::Extern](crate::types::TypeInfo::Extern)
#[macro_export]
macro_rules! define_extern_type {
- ($target:ident) => (define_extern_type!($target => $target););
+ ($target:ident) => ($crate::define_extern_type!($target => $target););
7
($target:ty => $defined_path:path) => {
8
- impl ::static_reflect::StaticReflect for $target {
+ unsafe impl ::static_reflect::StaticReflect for $target {
9
const TYPE_INFO: $crate::TypeInfo<'static> = $crate::TypeInfo::Extern {
10
name: stringify!($defined_path)
11
};
0 commit comments