diff options
| author | 林炳权 <695601626@qq.com> | 2024-04-11 06:08:23 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-10 22:08:23 +0000 |
| commit | 9304126be5633d4e7d384a8df87f5833a7a145e2 (patch) | |
| tree | c074d89e9f2423c5121721ea94b9b4fb3101a482 /ext/ffi | |
| parent | c6f1107e9c8835389479f4f2d80d3539d23df41e (diff) | |
chore: update to Rust 1.77.2 (#23262)
update to Rust 1.77.2
---------
Co-authored-by: Matt Mastracci <matthew@mastracci.com>
Diffstat (limited to 'ext/ffi')
| -rw-r--r-- | ext/ffi/callback.rs | 2 | ||||
| -rw-r--r-- | ext/ffi/dlfcn.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/ffi/callback.rs b/ext/ffi/callback.rs index 556d21525..eeea49c23 100644 --- a/ext/ffi/callback.rs +++ b/ext/ffi/callback.rs @@ -34,7 +34,7 @@ use std::task::Poll; static THREAD_ID_COUNTER: AtomicU32 = AtomicU32::new(1); thread_local! { - static LOCAL_THREAD_ID: RefCell<u32> = RefCell::new(0); + static LOCAL_THREAD_ID: RefCell<u32> = const { RefCell::new(0) }; } #[derive(Clone)] diff --git a/ext/ffi/dlfcn.rs b/ext/ffi/dlfcn.rs index ad287b9d0..bd46f14b2 100644 --- a/ext/ffi/dlfcn.rs +++ b/ext/ffi/dlfcn.rs @@ -101,7 +101,7 @@ struct ForeignStatic { #[derive(Debug)] enum ForeignSymbol { ForeignFunction(ForeignFunction), - ForeignStatic(ForeignStatic), + ForeignStatic(#[allow(dead_code)] ForeignStatic), } impl<'de> Deserialize<'de> for ForeignSymbol { |
