We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9c12d8 commit 9feffadCopy full SHA for 9feffad
Cargo.toml
@@ -1,6 +1,6 @@
1
[package]
2
name = "static-reflect"
3
-version = "0.1.1"
+version = "0.1.2"
4
edition = "2018"
5
description = "Static type information, giving a form of compile-time reflection"
6
license = "MIT"
src/builtins.rs
@@ -128,7 +128,7 @@ impl AsmOption<()> {
128
///
129
/// This should be equal to the type's alignment
130
#[inline]
131
- pub const fn value_field_offset(element_type: TypeInfo<'static>) -> usize {
+ pub const fn value_field_offset(element_type: &TypeInfo<'_>) -> usize {
132
element_type.alignment()
133
}
134
0 commit comments