rust/hedgewars-server/src/server/handlers.rs
changeset 14692 5122c584804e
parent 14678 08a8605bafaf
child 14695 f61ce544d436
equal deleted inserted replaced
14691:9f98086de1b6 14692:5122c584804e
    61             (ids, m.message)
    61             (ids, m.message)
    62         })
    62         })
    63     }
    63     }
    64 }
    64 }
    65 
    65 
       
    66 impl Extend<PendingMessage> for Response {
       
    67     fn extend<T: IntoIterator<Item = PendingMessage>>(&mut self, iter: T) {
       
    68         for msg in iter {
       
    69             self.add(msg)
       
    70         }
       
    71     }
       
    72 }
       
    73 
    66 fn get_recipients(
    74 fn get_recipients(
    67     server: &HWServer,
    75     server: &HWServer,
    68     client_id: ClientId,
    76     client_id: ClientId,
    69     destination: &Destination,
    77     destination: &Destination,
    70 ) -> Vec<ClientId> {
    78 ) -> Vec<ClientId> {