File tree 2 files changed +12
-15
lines changed
2 files changed +12
-15
lines changed Original file line number Diff line number Diff line change @@ -15,5 +15,4 @@ matrix:
15
15
- rust : nightly
16
16
17
17
os :
18
- - osx
19
18
- linux
Original file line number Diff line number Diff line change @@ -113,16 +113,14 @@ impl Node {
113
113
114
114
#[ inline( always) ]
115
115
fn new ( value : JsonValue , hash : u64 , len : usize ) -> Node {
116
- unsafe {
117
- Node {
118
- key_buf : mem:: uninitialized ( ) ,
119
- key_len : len,
120
- key_ptr : mem:: uninitialized ( ) ,
121
- key_hash : hash,
122
- value : value,
123
- left : 0 ,
124
- right : 0 ,
125
- }
116
+ Node {
117
+ key_buf : [ 0 ; KEY_BUF_LEN ] ,
118
+ key_len : len,
119
+ key_ptr : ptr:: null_mut ( ) ,
120
+ key_hash : hash,
121
+ value : value,
122
+ left : 0 ,
123
+ right : 0 ,
126
124
}
127
125
}
128
126
@@ -602,10 +600,10 @@ impl<'a> Index<&'a str> for Object {
602
600
type Output = JsonValue ;
603
601
604
602
fn index ( & self , index : & str ) -> & JsonValue {
605
- match self . get ( index) {
606
- Some ( value) => value,
607
- _ => & NULL
608
- }
603
+ match self . get ( index) {
604
+ Some ( value) => value,
605
+ _ => & NULL
606
+ }
609
607
}
610
608
}
611
609
You can’t perform that action at this time.
0 commit comments