File tree 1 file changed +6
-8
lines changed
src/unix/bsd/netbsdlike/openbsdlike/openbsd
1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -146,12 +146,10 @@ cfg_if! {
146
146
if #[ cfg( feature = "extra_traits" ) ] {
147
147
impl PartialEq for mount_info {
148
148
fn eq( & self , other: & mount_info) -> bool {
149
- unsafe {
150
- self . align
151
- . iter( )
152
- . zip( other. align. iter( ) )
153
- . all( |( a, b) | a == b)
154
- }
149
+ self . align
150
+ . iter( )
151
+ . zip( other. align. iter( ) )
152
+ . all( |( a, b) | a == b)
155
153
}
156
154
}
157
155
@@ -160,14 +158,14 @@ cfg_if! {
160
158
impl :: fmt:: Debug for mount_info {
161
159
fn fmt( & self , f: & mut :: fmt:: Formatter ) -> :: fmt:: Result {
162
160
f. debug_struct( "mount_info" )
163
- // FIXME: .field("align", &self.align)
161
+ // FIXME: .field("align", &self.align)
164
162
. finish( )
165
163
}
166
164
}
167
165
168
166
impl :: hash:: Hash for mount_info {
169
167
fn hash<H : :: hash:: Hasher >( & self , state: & mut H ) {
170
- unsafe { self . align. hash( state) } ;
168
+ self . align. hash( state) ;
171
169
}
172
170
}
173
171
}
You can’t perform that action at this time.
0 commit comments