File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ pub const WIT_TYPE_FUTURE: u32 = 25;
2929pub const WIT_TYPE_STREAM : u32 = 26 ;
3030pub const WIT_TYPE_ALIAS : u32 = 27 ;
3131pub const WIT_TYPE_EMPTY : u32 = 255 ;
32- pub const WIT_V0 : u32 = 0 ;
32+ pub const WIT_CURRENT_VERSION : u32 = 1 ;
3333pub type wit_type_t = u32 ;
3434pub type wit_import_fn_t =
3535 :: std:: option:: Option < unsafe extern "C" fn ( cx : * mut :: std:: os:: raw:: c_void ) > ;
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ impl_extra_traits!(Wit);
3434impl Wit {
3535 pub ( crate ) unsafe fn from_raw ( ptr : * const ffi:: wit_t ) -> Wit {
3636 unsafe {
37- assert ! ( ( * ptr) . version >= ffi:: WIT_V0 ) ;
37+ assert ! ( ( * ptr) . version >= ffi:: WIT_CURRENT_VERSION ) ;
3838 Wit {
3939 ptr : ptr. as_ref ( ) . unwrap ( ) ,
4040 }
You can’t perform that action at this time.
0 commit comments