Skip to content

Commit

Permalink
Merge pull request #2055 from bendk/fix-constructor-macro-error
Browse files Browse the repository at this point in the history
Make the proc-macro constructor error more precise
  • Loading branch information
bendk authored Mar 28, 2024
2 parents c799ed9 + 8d2d771 commit 717a2c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uniffi_meta/src/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ impl<'a> MetadataReader<'a> {
Type::Object { name, imp: ObjectImpl::Struct, .. } if name == &self_name
)
})
.context("Constructor return type must be Arc<Self>")?;
.context("Constructor return type must be Self or Arc<Self>")?;

Ok(ConstructorMetadata {
module_path,
Expand Down

0 comments on commit 717a2c7

Please sign in to comment.