File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -32,11 +32,11 @@ pub enum __Feature {
32
32
}
33
33
34
34
pub fn detect_features < T : linux:: FeatureQuery > ( mut x : T ) -> usize {
35
- let value: usize = 0 ;
35
+ let mut value: usize = 0 ;
36
36
{
37
37
let mut enable_feature = |f| {
38
38
if x. has_feature ( & f) {
39
- bit:: set ( value, f as u32 ) ;
39
+ value = bit:: set ( value, f as u32 ) ;
40
40
}
41
41
} ;
42
42
enable_feature ( __Feature:: asimd) ;
Original file line number Diff line number Diff line change @@ -29,11 +29,11 @@ pub enum __Feature {
29
29
}
30
30
31
31
pub fn detect_features < T : linux:: FeatureQuery > ( mut x : T ) -> usize {
32
- let value: usize = 0 ;
32
+ let mut value: usize = 0 ;
33
33
{
34
34
let mut enable_feature = |f| {
35
35
if x. has_feature ( & f) {
36
- bit:: set ( value, f as u32 ) ;
36
+ value = bit:: set ( value, f as u32 ) ;
37
37
}
38
38
} ;
39
39
enable_feature ( __Feature:: neon) ;
You can’t perform that action at this time.
0 commit comments