Skip to content

Commit

Permalink
(fix) while true -> loop
Browse files Browse the repository at this point in the history
  • Loading branch information
sunng87 committed Jul 14, 2015
1 parent d69b2fc commit 8dab53d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/watch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,13 @@ pub trait Watchable {
}

impl Watchable for Arc<HandlebarsEngine> {
#[allow(while_true)]
fn watch (&self) {
let hbs = self.clone();
thread::spawn(move || {
println!("watching path: {}", hbs.prefix);
let prefix = hbs.prefix.clone();
let path = Path::new(&prefix);
while true {
loop {
match _watch(&path) {
Ok(_) => {
println!("things changed");
Expand Down

0 comments on commit 8dab53d

Please sign in to comment.