mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Remove now-unnecessary must_root and allow(unrooted_must_root) annotations
This commit is contained in:
parent
6df1c6d7e7
commit
611dc4bc70
28 changed files with 2 additions and 67 deletions
|
@ -620,31 +620,26 @@ impl RequestMethods for Request {
|
|||
Request::clone_from(self)
|
||||
}
|
||||
|
||||
#[allow(unrooted_must_root)]
|
||||
// https://fetch.spec.whatwg.org/#dom-body-text
|
||||
fn Text(&self) -> Rc<Promise> {
|
||||
consume_body(self, BodyType::Text)
|
||||
}
|
||||
|
||||
#[allow(unrooted_must_root)]
|
||||
// https://fetch.spec.whatwg.org/#dom-body-blob
|
||||
fn Blob(&self) -> Rc<Promise> {
|
||||
consume_body(self, BodyType::Blob)
|
||||
}
|
||||
|
||||
#[allow(unrooted_must_root)]
|
||||
// https://fetch.spec.whatwg.org/#dom-body-formdata
|
||||
fn FormData(&self) -> Rc<Promise> {
|
||||
consume_body(self, BodyType::FormData)
|
||||
}
|
||||
|
||||
#[allow(unrooted_must_root)]
|
||||
// https://fetch.spec.whatwg.org/#dom-body-json
|
||||
fn Json(&self) -> Rc<Promise> {
|
||||
consume_body(self, BodyType::Json)
|
||||
}
|
||||
|
||||
#[allow(unrooted_must_root)]
|
||||
// https://fetch.spec.whatwg.org/#dom-body-arraybuffer
|
||||
fn ArrayBuffer(&self) -> Rc<Promise> {
|
||||
consume_body(self, BodyType::ArrayBuffer)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue