mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-18 08:06:32 +00:00
chore: update toolchain version to 2024-11-05 (#1031)
* chore: update toolchain version to 2024-11-05 * update dragon reach to e945c217b3 * update dog to 6f2c0c8f12 --------- Co-authored-by: longjin <longjin@DragonOS.org>
This commit is contained in:
@ -61,7 +61,6 @@ mod item_type;
|
||||
/// #[derive(std::fmt::Debug)]
|
||||
/// struct Data;
|
||||
/// ```
|
||||
|
||||
#[proc_macro_attribute]
|
||||
pub fn cast_to(args: TokenStream, input: TokenStream) -> TokenStream {
|
||||
match parse::<Targets>(args) {
|
||||
|
@ -122,6 +122,7 @@ static CASTER_MAP: once_cell::sync::Lazy<HashMap<(TypeId, TypeId), BoxedCaster,
|
||||
static mut CASTER_MAP: Option<HashMap<(TypeId, TypeId), BoxedCaster, BuildFastHasher>> = None;
|
||||
|
||||
#[cfg(target_os = "none")]
|
||||
#[allow(static_mut_refs)]
|
||||
pub fn caster_map() -> &'static HashMap<(TypeId, TypeId), BoxedCaster, BuildFastHasher> {
|
||||
return unsafe {
|
||||
CASTER_MAP.as_ref().unwrap_or_else(|| {
|
||||
|
Reference in New Issue
Block a user