Skip to content

Commit c185ed5

Browse files
committed
Bump to 0.6.3
1 parent 380286f commit c185ed5

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
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.6.2"
4+
version = "0.6.3"
55
authors = ["[email protected]"]
66
license = "MIT"
77
description = "Router middleware for conduit based on route-recognizer"

src/lib.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ extern crate conduit;
33

44
use std::collections::hash_map::{HashMap, Entry};
55
use std::error::Error;
6+
use std::fmt;
67

78
use router::{Router, Match};
89
use conduit::{Method, Handler, Request, Response};
@@ -91,6 +92,12 @@ impl Error for RouterError {
9192
fn description(&self) -> &str { self.0.as_slice() }
9293
}
9394

95+
impl fmt::Display for RouterError {
96+
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
97+
fmt::Display::fmt(&self.0, f)
98+
}
99+
}
100+
94101
pub trait RequestParams<'a> {
95102
fn params(self) -> &'a router::Params;
96103
}

0 commit comments

Comments
 (0)