mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Make AsyncResponseListener methods take &mut self
.
This commit is contained in:
parent
9d5f09e09c
commit
c1aff0b678
6 changed files with 18 additions and 18 deletions
|
@ -112,13 +112,13 @@ impl CORSRequest {
|
|||
// This is shoe-horning the CORSReponse stuff into the rest of the async network
|
||||
// framework right now. It would be worth redesigning http_fetch to do this properly.
|
||||
impl AsyncResponseListener for CORSContext {
|
||||
fn headers_available(&self, _metadata: Metadata) {
|
||||
fn headers_available(&mut self, _metadata: Metadata) {
|
||||
}
|
||||
|
||||
fn data_available(&self, _payload: Vec<u8>) {
|
||||
fn data_available(&mut self, _payload: Vec<u8>) {
|
||||
}
|
||||
|
||||
fn response_complete(&self, _status: Result<(), String>) {
|
||||
fn response_complete(&mut self, _status: Result<(), String>) {
|
||||
let response = self.response.borrow_mut().take().unwrap();
|
||||
self.listener.response_available(response);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue