Skip to content

Commit

Permalink
Fix unused warning
Browse files Browse the repository at this point in the history
  • Loading branch information
HKalbasi committed Sep 9, 2023
1 parent 91f4952 commit 09382bc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions zngur-generator/src/cpp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -502,9 +502,6 @@ inline size_t __zngur_internal_size_of<Ref<{ty}>>() {{
}

fn emit(&self, state: &mut State) -> std::fmt::Result {
let is_unsized = self
.wellknown_traits
.contains(&ZngurWellknownTraitData::Unsized);
let is_copy = self
.wellknown_traits
.contains(&ZngurWellknownTraitData::Copy);
Expand Down
3 changes: 0 additions & 3 deletions zngur-generator/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ impl ZngurGenerator {
cpp_file.additional_includes = zng.additional_includes;
let mut rust_file = RustFile::default();
for ty_def in zng.types {
let is_unsized = ty_def
.wellknown_traits
.contains(&ZngurWellknownTrait::Unsized);
let is_copy = ty_def.wellknown_traits.contains(&ZngurWellknownTrait::Copy);
match ty_def.layout {
LayoutPolicy::StackAllocated { size, align } => {
Expand Down

0 comments on commit 09382bc

Please sign in to comment.