Use the better TokenStream API in dom_struct

Before:

```
error[E0412]: cannot find type `SourceBuffer` in this scope
  --> /Users/nox/src/servo/components/script/dom/mediasource.rs:25:1
   |
25 | #[dom_struct]
   | ^^^^^^^^^^^^^ did you mean `SourceBufferList`?
```

After:

```
error[E0412]: cannot find type `SourceBuffer` in this scope
  --> /Users/nox/src/servo/components/script/dom/mediasource.rs:28:39
   |
28 |     source_buffers: DOMRefCell<Vec<JS<SourceBuffer>>>,
   |                                       ^^^^^^^^^^^^ did you mean `SourceBufferList`?
```
This commit is contained in:
Anthony Ramine 2017-09-01 11:43:11 +02:00
parent 3dceb11158
commit 5dad4c826d
3 changed files with 5 additions and 16 deletions

View file

@ -8,6 +8,3 @@ publish = false
[lib]
path = "lib.rs"
proc-macro = true
[dependencies]
quote = "0.3.15"