Prechádzať zdrojové kódy

Fixed rust/tokio-minihttp and locked the git revision. (#2504)

Gökberk YALTIRAKLI 8 rokov pred
rodič
commit
3d9a0dbff7

+ 3 - 3
frameworks/Rust/tokio-minihttp/Cargo.toml

@@ -8,6 +8,6 @@ futures = "0.1"
 httparse = "1.1"
 serde_json = "0.8"
 num_cpus = "1.0"
-tokio-proto = { git = "https://github.com/tokio-rs/tokio-proto", revision = "e42b3bfb" }
-tokio-service = { git = "https://github.com/tokio-rs/tokio-service", revision = "0c904c40" }
-tokio-minihttp = { git = "https://github.com/tokio-rs/tokio-minihttp", revision = "6ac81b31" }
+tokio-proto = "0.1"
+tokio-service = "0.1"
+tokio-minihttp = { git = "https://github.com/tokio-rs/tokio-minihttp", rev = "753a94c" }

+ 1 - 1
frameworks/Rust/tokio-minihttp/src/main.rs

@@ -19,7 +19,7 @@ impl Service for Techempower {
     type Error = std::io::Error;
     type Future = future::Ok<Response, std::io::Error>;
 
-    fn call(&mut self, req: Request) -> Self::Future {
+    fn call(&self, req: Request) -> Self::Future {
         let mut resp = Response::new();
 
         // Bare-bones router