aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/style/errors.rs
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2014-03-14 14:46:30 -0400
committerLars Bergstrom <lars@lars.com>2014-03-18 09:31:22 -0500
commit64c0de9fe7dc5555821ca5cb4c13aa2418e91b94 (patch)
treef8bee1d1d3b38572a3e2519542d5548e251e802d /src/components/style/errors.rs
parentf279abbf9f894641f592fee7f70fa0e29d955dad (diff)
downloadservo-64c0de9fe7dc5555821ca5cb4c13aa2418e91b94.tar.gz
servo-64c0de9fe7dc5555821ca5cb4c13aa2418e91b94.zip
Warning police.
Diffstat (limited to 'src/components/style/errors.rs')
-rw-r--r--src/components/style/errors.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/components/style/errors.rs b/src/components/style/errors.rs
index 51729f6def7..f62520065a0 100644
--- a/src/components/style/errors.rs
+++ b/src/components/style/errors.rs
@@ -11,14 +11,13 @@ pub struct ErrorLoggerIterator<I>(I);
impl<T, I: Iterator<Result<T, SyntaxError>>> Iterator<T> for ErrorLoggerIterator<I> {
fn next(&mut self) -> Option<T> {
let ErrorLoggerIterator(ref mut this) = *self;
- while true {
+ loop {
match this.next() {
Some(Ok(v)) => return Some(v),
Some(Err(error)) => log_css_error(error.location, format!("{:?}", error.reason)),
None => return None,
}
}
- None
}
}