mirror of
https://github.com/Zenithsiz/dynatos.git
synced 2026-02-03 10:05:32 +00:00
Updated to rustc 1.91.0-nightly (7ad23f43a 2025-09-09).
This commit is contained in:
parent
c852c5a116
commit
5da16e661f
@ -113,7 +113,7 @@ where
|
||||
|
||||
/// Converts a handle to an opaque handle
|
||||
#[must_use]
|
||||
pub fn to_opaque<T>(handle: Handle<T>) -> OpaqueHandle
|
||||
pub const fn to_opaque<T>(handle: Handle<T>) -> OpaqueHandle
|
||||
where
|
||||
T: 'static,
|
||||
{
|
||||
|
||||
@ -23,7 +23,7 @@ pub struct Handle<T: 'static> {
|
||||
|
||||
impl<T: 'static> Handle<T> {
|
||||
/// Converts this handle to an opaque handle
|
||||
pub fn into_opaque(self) -> OpaqueHandle {
|
||||
pub const fn into_opaque(self) -> OpaqueHandle {
|
||||
// Create the opaque handle and forget ourselves
|
||||
// Note: This is to ensure we don't try to take the value in the [`Drop`] impl
|
||||
let handle = OpaqueHandle {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user