@@ -191,25 +191,25 @@ impl<'a> convert::From<&'a CtlValue> for CtlType {
191
191
impl CtlType {
192
192
fn min_type_size ( self : & Self ) -> usize {
193
193
match self {
194
- CtlType :: None => 0 ,
195
- CtlType :: Node => 0 ,
196
- CtlType :: Int => mem:: size_of :: < libc:: c_int > ( ) ,
197
- CtlType :: String => 0 ,
198
- CtlType :: S64 => mem:: size_of :: < i64 > ( ) ,
199
- CtlType :: Struct => 0 ,
200
- CtlType :: Uint => mem:: size_of :: < libc:: c_uint > ( ) ,
201
- CtlType :: Long => mem:: size_of :: < libc:: c_long > ( ) ,
202
- CtlType :: Ulong => mem:: size_of :: < libc:: c_ulong > ( ) ,
203
- CtlType :: U64 => mem:: size_of :: < u64 > ( ) ,
204
- CtlType :: U8 => mem:: size_of :: < u8 > ( ) ,
205
- CtlType :: U16 => mem:: size_of :: < u16 > ( ) ,
206
- CtlType :: S8 => mem:: size_of :: < i8 > ( ) ,
207
- CtlType :: S16 => mem:: size_of :: < i16 > ( ) ,
208
- CtlType :: S32 => mem:: size_of :: < i32 > ( ) ,
209
- CtlType :: U32 => mem:: size_of :: < u32 > ( ) ,
194
+ & CtlType :: None => 0 ,
195
+ & CtlType :: Node => 0 ,
196
+ & CtlType :: Int => mem:: size_of :: < libc:: c_int > ( ) ,
197
+ & CtlType :: String => 0 ,
198
+ & CtlType :: S64 => mem:: size_of :: < i64 > ( ) ,
199
+ & CtlType :: Struct => 0 ,
200
+ & CtlType :: Uint => mem:: size_of :: < libc:: c_uint > ( ) ,
201
+ & CtlType :: Long => mem:: size_of :: < libc:: c_long > ( ) ,
202
+ & CtlType :: Ulong => mem:: size_of :: < libc:: c_ulong > ( ) ,
203
+ & CtlType :: U64 => mem:: size_of :: < u64 > ( ) ,
204
+ & CtlType :: U8 => mem:: size_of :: < u8 > ( ) ,
205
+ & CtlType :: U16 => mem:: size_of :: < u16 > ( ) ,
206
+ & CtlType :: S8 => mem:: size_of :: < i8 > ( ) ,
207
+ & CtlType :: S16 => mem:: size_of :: < i16 > ( ) ,
208
+ & CtlType :: S32 => mem:: size_of :: < i32 > ( ) ,
209
+ & CtlType :: U32 => mem:: size_of :: < u32 > ( ) ,
210
210
// Added custom types below
211
211
#[ cfg( not( target_os = "macos" ) ) ]
212
- CtlType :: Temperature => 0 ,
212
+ & CtlType :: Temperature => 0 ,
213
213
}
214
214
}
215
215
}
0 commit comments