Skip to content

Commit

Permalink
Derive Debug for PersistentError
Browse files Browse the repository at this point in the history
  • Loading branch information
sinkuu committed May 22, 2015
1 parent 8e70259 commit 64d40d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/hitcounter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pub struct HitCounter;
impl Key for HitCounter { type Value = usize; }

fn serve_hits(req: &mut Request) -> IronResult<Response> {
let mutex = req.get::<Write<HitCounter>>().ok().unwrap();
let mutex = req.get::<Write<HitCounter>>().unwrap();
let mut count = mutex.lock().unwrap();

*count += 1;
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use std::sync::{Arc, RwLock, Mutex};
use plugin::Plugin;

/// The type that can be returned by `eval` to indicate error.
#[derive(Clone)]
#[derive(Clone, Debug)]
pub enum PersistentError {
/// The value was not found.
NotFound
Expand Down

0 comments on commit 64d40d5

Please sign in to comment.