Make AsyncResponseListener methods take &mut self.

This commit is contained in:
Eli Friedman 2015-10-15 16:44:39 -07:00
parent 9d5f09e09c
commit c1aff0b678
6 changed files with 18 additions and 18 deletions

View file

@ -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);
}