Skip to content

Commit dd7b5ee

Browse files
committed
Change StringType to RecordKeyType
In response to wasm-bindgen/weedle#50
1 parent 7b78f41 commit dd7b5ee

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

crates/webidl/src/idl_type.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -263,12 +263,13 @@ impl<'a> ToIdlType<'a> for RecordType<'a> {
263263
}
264264
}
265265

266-
impl<'a> ToIdlType<'a> for StringType {
266+
impl<'a> ToIdlType<'a> for RecordKeyType<'a> {
267267
fn to_idl_type(&self, record: &FirstPassRecord<'a>) -> IdlType<'a> {
268268
match self {
269-
StringType::Byte(t) => t.to_idl_type(record),
270-
StringType::DOM(t) => t.to_idl_type(record),
271-
StringType::USV(t) => t.to_idl_type(record),
269+
RecordKeyType::Byte(t) => t.to_idl_type(record),
270+
RecordKeyType::DOM(t) => t.to_idl_type(record),
271+
RecordKeyType::USV(t) => t.to_idl_type(record),
272+
RecordKeyType::NonAny(t) => t.to_idl_type(record)
272273
}
273274
}
274275
}

0 commit comments

Comments
 (0)