File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
branches/snap-stage3/src/libcollections Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: c044791d80ea0dc5c4b57b6030a67b69f8510239
3
- refs/heads/snap-stage3: fd3b6ca508ed99004a11291ef1d2c64104102a41
3
+ refs/heads/snap-stage3: 0aeb9f6f08c353c71d962d5cc7a231e73040ca3c
4
4
refs/heads/try: b53c0f93eedcdedd4fd89bccc5a3a09d1c5cd23e
5
5
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
6
6
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
Original file line number Diff line number Diff line change @@ -106,16 +106,14 @@ impl<T> Rawlink<T> {
106
106
/// Convert the `Rawlink` into an Option value
107
107
fn resolve_immut < ' a > ( & self ) -> Option < & ' a T > {
108
108
unsafe {
109
- mem :: transmute ( self . p . as_ref ( ) )
109
+ self . p . as_ref ( )
110
110
}
111
111
}
112
112
113
113
/// Convert the `Rawlink` into an Option value
114
114
fn resolve < ' a > ( & mut self ) -> Option < & ' a mut T > {
115
- if self . p . is_null ( ) {
116
- None
117
- } else {
118
- Some ( unsafe { mem:: transmute ( self . p ) } )
115
+ unsafe {
116
+ self . p . as_mut ( )
119
117
}
120
118
}
121
119
You can’t perform that action at this time.
0 commit comments