Skip to content

Commit

Permalink
roll back unnecessary field on cswrapper
Browse files Browse the repository at this point in the history
Signed-off-by: Chloe McKnight <[email protected]>
  • Loading branch information
cmcknight-bb committed Nov 20, 2024
1 parent fc86553 commit 550ef17
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions bindgen/src/gen_cs/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,6 @@ pub struct CsWrapper<'a> {
type_helper_code: String,
type_imports: RefCell<BTreeSet<String>>,
type_aliases: BTreeSet<TypeAlias>,
has_async_fns: bool,
}

impl<'a> CsWrapper<'a> {
Expand All @@ -200,7 +199,6 @@ impl<'a> CsWrapper<'a> {
type_helper_code,
type_imports,
type_aliases,
has_async_fns: ci.has_async_fns(),
}
}

Expand All @@ -210,7 +208,8 @@ impl<'a> CsWrapper<'a> {
.map(|t| CsCodeOracle.find(t))
.filter_map(|ct| ct.initialization_fn())
.chain(
self.has_async_fns
self.ci
.has_async_fns()
.then(|| "_UniFFIAsync.UniffiRustFutureContinuationCallback.Register".into()),
)
.collect()
Expand Down

0 comments on commit 550ef17

Please sign in to comment.