Skip to content

Commit

Permalink
Fix some weird formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
brianloveswords committed Oct 26, 2015
1 parent 0aea371 commit 8b2420b
Showing 1 changed file with 11 additions and 38 deletions.
49 changes: 11 additions & 38 deletions src/task_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,12 +165,10 @@ pub enum Error {
}
impl fmt::Display for Error {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f,
"{}",
match *self {
Error::QueueMissing => "could not find queue in queue map",
Error::Shutdown => "manager is shut down",
})
write!(f, "{}", match *self {
Error::QueueMissing => "could not find queue in queue map",
Error::Shutdown => "manager is shut down",
})
}
}

Expand Down Expand Up @@ -457,38 +455,13 @@ mod tests {
let key = Uuid::new_v4().to_string();

let queue_key = manager.ensure_queue(key);
manager.add_task(&queue_key,
Task {
s: s.clone(),
m: "s",
});
manager.add_task(&queue_key,
Task {
s: s.clone(),
m: "l",
});
manager.add_task(&queue_key,
Task {
s: s.clone(),
m: "o",
});
manager.add_task(&queue_key,
Task {
s: s.clone(),
m: "t",
});
manager.add_task(&queue_key,
Task {
s: s.clone(),
m: "h",
});
manager.add_task(&queue_key,
Task {
s: s.clone(),
m: "s",
})
.unwrap()
.recv();
manager.add_task(&queue_key, Task { s: s.clone(), m: "s", });
manager.add_task(&queue_key, Task { s: s.clone(), m: "l", });
manager.add_task(&queue_key, Task { s: s.clone(), m: "o", });
manager.add_task(&queue_key, Task { s: s.clone(), m: "t", });
manager.add_task(&queue_key, Task { s: s.clone(), m: "h", });
manager.add_task(&queue_key, Task { s: s.clone(), m: "s", })
.unwrap().recv();
})
};

Expand Down

0 comments on commit 8b2420b

Please sign in to comment.