dont derive copy from unsafecell type
This commit is contained in:
parent
df079b7af6
commit
ed5c4a5702
|
@ -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}]>);")?;
|
||||
|
||||
|
|
Loading…
Reference in a new issue