@@ -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 ) }
0 commit comments