Skip to content

Commit 627419a

Browse files
committed
Bump to 0.7.1
1 parent d222655 commit 627419a

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22

33
name = "conduit-router"
4-
version = "0.7.0"
4+
version = "0.7.1"
55
authors = ["[email protected]"]
66
license = "MIT"
77
description = "Router middleware for conduit based on route-recognizer"

src/lib.rs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
#![feature(core, std_misc)]
2-
3-
extern crate "route-recognizer" as router;
1+
extern crate route_recognizer as router;
42
extern crate conduit;
53

64
use std::collections::hash_map::{HashMap, Entry};
@@ -18,6 +16,7 @@ pub struct RouteBuilder {
1816
unsafe impl Sync for RouteBuilder {}
1917
unsafe impl Send for RouteBuilder {}
2018

19+
#[derive(Debug)]
2120
pub struct RouterError(String);
2221

2322
impl RouteBuilder {
@@ -95,7 +94,7 @@ impl conduit::Handler for RouteBuilder {
9594
}
9695

9796
impl Error for RouterError {
98-
fn description(&self) -> &str { self.0.as_slice() }
97+
fn description(&self) -> &str { &self.0 }
9998
}
10099

101100
impl fmt::Display for RouterError {
@@ -154,9 +153,7 @@ mod tests {
154153
fn scheme(&self) -> Scheme { unimplemented!() }
155154
fn host<'a>(&'a self) -> Host<'a> { unimplemented!() }
156155
fn virtual_root<'a>(&'a self) -> Option<&'a str> { unimplemented!() }
157-
fn path<'a>(&'a self) -> &'a str {
158-
self.path.as_slice()
159-
}
156+
fn path<'a>(&'a self) -> &'a str { &self.path }
160157
fn query_string<'a>(&'a self) -> Option<&'a str> { unimplemented!() }
161158
fn remote_addr(&self) -> SocketAddr { unimplemented!() }
162159
fn content_length(&self) -> Option<u64> { unimplemented!() }

0 commit comments

Comments
 (0)