File tree 2 files changed +13
-2
lines changed
2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -336,7 +336,7 @@ where
336
336
/// Like `platform_info_in`, but uses the global allocator.
337
337
#[ cfg( feature = "alloc" ) ]
338
338
pub fn platform_info ( & self ) -> AcpiResult < PlatformInfo < alloc:: alloc:: Global > > {
339
- PlatformInfo :: new_in ( self , alloc :: alloc :: Global )
339
+ PlatformInfo :: new ( self )
340
340
}
341
341
342
342
/// Convenience method for contructing a [`PlatformInfo`](crate::platform::PlatformInfo). This is one of the
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ use crate::{
6
6
madt:: Madt ,
7
7
AcpiError ,
8
8
AcpiHandler ,
9
+ AcpiResult ,
9
10
AcpiTables ,
10
11
ManagedSlice ,
11
12
PowerProfile ,
@@ -100,11 +101,21 @@ where
100
101
*/
101
102
}
102
103
104
+ #[ cfg( feature = "alloc" ) ]
105
+ impl < ' a > PlatformInfo < ' a , alloc:: alloc:: Global > {
106
+ pub fn new < H > ( tables : & AcpiTables < H > ) -> AcpiResult < Self >
107
+ where
108
+ H : AcpiHandler ,
109
+ {
110
+ Self :: new_in ( tables, alloc:: alloc:: Global )
111
+ }
112
+ }
113
+
103
114
impl < ' a , A > PlatformInfo < ' a , A >
104
115
where
105
116
A : Allocator + Clone ,
106
117
{
107
- pub fn new_in < H > ( tables : & AcpiTables < H > , allocator : A ) -> crate :: AcpiResult < Self >
118
+ pub fn new_in < H > ( tables : & AcpiTables < H > , allocator : A ) -> AcpiResult < Self >
108
119
where
109
120
H : AcpiHandler ,
110
121
{
You can’t perform that action at this time.
0 commit comments