Translate ByteString in WebIDL to [u8] (#505)

In arguments take `&[u8]` and in return value return `Vec<u8>`. Should help fill
out a few more APIs on `Header` and `Response`!
This commit is contained in:
Alex Crichton
2018-07-18 17:59:24 -05:00
committed by GitHub
parent 32fa5724dd
commit 9b6804a01b
5 changed files with 46 additions and 6 deletions

View File

@ -269,7 +269,12 @@ where
self.retain(|x| {
let mut all_defined = true;
x.imported_type_references(&mut |id| {
all_defined = all_defined && is_defined(id);
if all_defined {
if !is_defined(id) {
info!("removing due to {} not being defined", id);
all_defined = false;
}
}
});
all_defined
});