File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -1925,7 +1925,8 @@ impl<'a> Drop for ProtocolsPerHandle<'a> {
1925
1925
impl < ' a > ProtocolsPerHandle < ' a > {
1926
1926
/// Get the protocol interface [`Guids`][Guid] that are installed on the
1927
1927
/// [`Handle`].
1928
- pub const fn protocols < ' b > ( & ' b self ) -> & ' b [ & ' a Guid ] {
1928
+ #[ allow( clippy:: missing_const_for_fn) ] // Required until we bump the MSRV.
1929
+ pub fn protocols < ' b > ( & ' b self ) -> & ' b [ & ' a Guid ] {
1929
1930
// convert raw pointer to slice here so that we can get
1930
1931
// appropriate lifetime of the slice.
1931
1932
unsafe { slice:: from_raw_parts ( self . protocols , self . count ) }
@@ -1951,7 +1952,8 @@ impl<'a> Drop for HandleBuffer<'a> {
1951
1952
1952
1953
impl < ' a > HandleBuffer < ' a > {
1953
1954
/// Get an array of [`Handles`][Handle] that support the requested protocol.
1954
- pub const fn handles ( & self ) -> & [ Handle ] {
1955
+ #[ allow( clippy:: missing_const_for_fn) ] // Required until we bump the MSRV.
1956
+ pub fn handles ( & self ) -> & [ Handle ] {
1955
1957
// convert raw pointer to slice here so that we can get
1956
1958
// appropriate lifetime of the slice.
1957
1959
unsafe { slice:: from_raw_parts ( self . buffer , self . count ) }
Original file line number Diff line number Diff line change @@ -70,7 +70,8 @@ impl<View: SystemTableView> SystemTable<View> {
70
70
71
71
/// Returns the config table entries, a linear array of structures
72
72
/// pointing to other system-specific tables.
73
- pub const fn config_table ( & self ) -> & [ cfg:: ConfigTableEntry ] {
73
+ #[ allow( clippy:: missing_const_for_fn) ] // Required until we bump the MSRV.
74
+ pub fn config_table ( & self ) -> & [ cfg:: ConfigTableEntry ] {
74
75
unsafe { slice:: from_raw_parts ( self . table . cfg_table , self . table . nr_cfg ) }
75
76
}
76
77
You can’t perform that action at this time.
0 commit comments