зеркало из https://github.com/mozilla/gecko-dev.git
webdriver: Don't require ownership in param if we don't need it. (#47)
Source-Repo: https://github.com/mozilla/webdriver-rust Source-Revision: 77779ccf3a00d34c0c4a66f80a4fbe195e7e401e committer: jgraham <james@hoppipolla.co.uk> --HG-- extra : subtree_source : http%3A//tristan.corp.lon2.mozilla.com%3A8000 extra : subtree_revision : 74518ecf0c0e635d9c489395b9f34a623342388f
This commit is contained in:
Родитель
93a79bc976
Коммит
a30c9e57ff
|
@ -201,7 +201,7 @@ pub struct WebDriverHttpApi<U: WebDriverExtensionRoute> {
|
|||
}
|
||||
|
||||
impl <U: WebDriverExtensionRoute> WebDriverHttpApi<U> {
|
||||
pub fn new(extension_routes:Vec<(Method, &str, U)>) -> WebDriverHttpApi<U> {
|
||||
pub fn new(extension_routes: &[(Method, &str, U)]) -> WebDriverHttpApi<U> {
|
||||
let mut rv = WebDriverHttpApi::<U> {
|
||||
routes: vec![],
|
||||
};
|
||||
|
|
|
@ -232,7 +232,7 @@ impl <U: WebDriverExtensionRoute> Handler for HttpHandler<U> {
|
|||
|
||||
pub fn start<T, U>(address: SocketAddr,
|
||||
handler: T,
|
||||
extension_routes: Vec<(Method, &str, U)>)
|
||||
extension_routes: &[(Method, &str, U)])
|
||||
-> Result<Listening>
|
||||
where T: 'static + WebDriverHandler<U>,
|
||||
U: 'static + WebDriverExtensionRoute
|
||||
|
|
Загрузка…
Ссылка в новой задаче