Created
November 5, 2017 23:06
-
-
Save ExpHP/16c17c657806bf56ac1e97779a8fb490 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/Cargo.toml b/Cargo.toml | |
| index 6b34472..63b1d0b 100644 | |
| --- a/Cargo.toml | |
| +++ b/Cargo.toml | |
| @@ -2,8 +2,8 @@ | |
| path = "spell_core" | |
| [dependencies] | |
| -iron = "*" | |
| -router = "*" | |
| +iron = "0.4" | |
| +router = "0.2" | |
| [package] | |
| name = "spell_corrector" | |
| diff --git a/spell_core/Cargo.toml b/spell_core/Cargo.toml | |
| index c21db0b..ee35405 100644 | |
| --- a/spell_core/Cargo.toml | |
| +++ b/spell_core/Cargo.toml | |
| @@ -1,6 +1,5 @@ | |
| [dependencies] | |
| -regex = "*" | |
| -regex_macros = "*" | |
| +regex = "0.1" | |
| [package] | |
| diff --git a/spell_core/src/lib.rs b/spell_core/src/lib.rs | |
| index 54492ca..5b9be9d 100644 | |
| --- a/spell_core/src/lib.rs | |
| +++ b/spell_core/src/lib.rs | |
| @@ -1,6 +1,3 @@ | |
| -#![feature(plugin)] | |
| -#![plugin(regex_macros)] | |
| - | |
| extern crate regex; | |
| use std::io::BufReader; | |
| use std::io::BufRead; | |
| diff --git a/src/main.rs b/src/main.rs | |
| index 983c4e0..1503ec3 100644 | |
| --- a/src/main.rs | |
| +++ b/src/main.rs | |
| @@ -10,7 +10,7 @@ use std::io::Read; | |
| use std::sync::{Arc, Mutex}; | |
| fn say_pong(req: &mut Request) -> IronResult<Response> { | |
| - println!("Running ping handler, URL path: {}", req.url.path.join("/")); | |
| + println!("Running ping handler, URL path: {}", req.url.path().join("/")); | |
| Ok(Response::with((status::Ok, "Pong!"))) | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment