aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/style/errors.rs
diff options
context:
space:
mode:
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
}
}