Fix compilation

This commit is contained in:
Alexandre Bury 2017-10-12 20:13:49 -07:00
parent aaf41f3ec4
commit def6b3af27
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
use {Cursive, Printer, With}; use {Cursive, Printer, With};
use direction::Direction; use direction::Direction;
use event::{Callback, Event, EventResult, Key}; use event::{Callback, Event, EventResult, Key, MouseEvent};
use std::cell::RefCell; use std::cell::RefCell;
use std::rc::Rc; use std::rc::Rc;
use theme::{ColorStyle, Effect}; use theme::{ColorStyle, Effect};

View File

@ -49,7 +49,7 @@ impl <'a,T: Deref<Target=Child>, I: Iterator<Item=T>> Iterator for ChildIterator
fn next(&mut self) -> Option<Self::Item> { fn next(&mut self) -> Option<Self::Item> {
self.inner.next().map(|child| { self.inner.next().map(|child| {
let previous = self.offset; let previous = self.offset;
self.offset += child.size.get(self.orientation); self.offset += *child.size.get(self.orientation);
(previous, child) (previous, child)
}) })
} }