Skip to content

Commit

Permalink
Use resource docs in Rust codegen (#688)
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Levick <ryan.levick@fermyon.com>
  • Loading branch information
rylev authored Oct 5, 2023
1 parent f266eb1 commit 90cd44b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -557,8 +557,7 @@ pub trait InterfaceGenerator<'a> {
let ty = &self.resolve().types[id];
match &ty.kind {
TypeDefKind::Record(record) => self.type_record(id, name, record, &ty.docs),
// TODO: use real docs when they're available:
TypeDefKind::Resource => self.type_resource(id, name, &Docs::default()),
TypeDefKind::Resource => self.type_resource(id, name, &ty.docs),
TypeDefKind::Flags(flags) => self.type_flags(id, name, flags, &ty.docs),
TypeDefKind::Tuple(tuple) => self.type_tuple(id, name, tuple, &ty.docs),
TypeDefKind::Enum(enum_) => self.type_enum(id, name, enum_, &ty.docs),
Expand Down

0 comments on commit 90cd44b

Please sign in to comment.