File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -323,7 +323,7 @@ mod x86_64 {
323
323
return Err ( "Syscall's segment must be a Ring0 segment." ) ;
324
324
}
325
325
326
- unsafe { Self :: write_raw ( ( ss_sysret. 0 - 8 ) . into ( ) , cs_syscall. 0 . into ( ) ) } ;
326
+ unsafe { Self :: write_raw ( ss_sysret. 0 - 8 , cs_syscall. 0 ) } ;
327
327
328
328
Ok ( ( ) )
329
329
}
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ impl<S: PageSize> fmt::Debug for PhysFrame<S> {
74
74
impl < S : PageSize > Add < u64 > for PhysFrame < S > {
75
75
type Output = Self ;
76
76
fn add ( self , rhs : u64 ) -> Self :: Output {
77
- PhysFrame :: containing_address ( self . start_address ( ) + rhs * u64 :: from ( S :: SIZE ) )
77
+ PhysFrame :: containing_address ( self . start_address ( ) + rhs * S :: SIZE )
78
78
}
79
79
}
80
80
@@ -87,7 +87,7 @@ impl<S: PageSize> AddAssign<u64> for PhysFrame<S> {
87
87
impl < S : PageSize > Sub < u64 > for PhysFrame < S > {
88
88
type Output = Self ;
89
89
fn sub ( self , rhs : u64 ) -> Self :: Output {
90
- PhysFrame :: containing_address ( self . start_address ( ) - rhs * u64 :: from ( S :: SIZE ) )
90
+ PhysFrame :: containing_address ( self . start_address ( ) - rhs * S :: SIZE )
91
91
}
92
92
}
93
93
Original file line number Diff line number Diff line change @@ -206,7 +206,7 @@ impl<S: PageSize> fmt::Debug for Page<S> {
206
206
impl < S : PageSize > Add < u64 > for Page < S > {
207
207
type Output = Self ;
208
208
fn add ( self , rhs : u64 ) -> Self :: Output {
209
- Page :: containing_address ( self . start_address ( ) + rhs * u64 :: from ( S :: SIZE ) )
209
+ Page :: containing_address ( self . start_address ( ) + rhs * S :: SIZE )
210
210
}
211
211
}
212
212
@@ -219,7 +219,7 @@ impl<S: PageSize> AddAssign<u64> for Page<S> {
219
219
impl < S : PageSize > Sub < u64 > for Page < S > {
220
220
type Output = Self ;
221
221
fn sub ( self , rhs : u64 ) -> Self :: Output {
222
- Page :: containing_address ( self . start_address ( ) - rhs * u64 :: from ( S :: SIZE ) )
222
+ Page :: containing_address ( self . start_address ( ) - rhs * S :: SIZE )
223
223
}
224
224
}
225
225
You can’t perform that action at this time.
0 commit comments