dont derive copy from unsafecell type

This commit is contained in:
Janis 2023-04-21 22:00:48 +02:00
parent df079b7af6
commit ed5c4a5702

View file

@ -156,7 +156,7 @@ pub fn generate_class<W: Write>(class: &Class, _sdk: &Sdk, w: &mut W) -> anyhow:
let name = class.rust_name();
writeln!(w, "#[repr(transparent)]")?;
writeln!(w, "#[derive(Debug, Eq, PartialEq, Copy, Clone)]")?;
writeln!(w, "#[derive(Debug, Eq, PartialEq, Clone)]")?;
if !is_class {
writeln!(w, "pub struct {name}(UnsafeCell<[u8; {size}]>);")?;