mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-10 03:10:41 +00:00
Fix compilation
This commit is contained in:
parent
aaf41f3ec4
commit
def6b3af27
@ -2,7 +2,7 @@
|
||||
|
||||
use {Cursive, Printer, With};
|
||||
use direction::Direction;
|
||||
use event::{Callback, Event, EventResult, Key};
|
||||
use event::{Callback, Event, EventResult, Key, MouseEvent};
|
||||
use std::cell::RefCell;
|
||||
use std::rc::Rc;
|
||||
use theme::{ColorStyle, Effect};
|
||||
|
@ -49,7 +49,7 @@ impl <'a,T: Deref<Target=Child>, I: Iterator<Item=T>> Iterator for ChildIterator
|
||||
fn next(&mut self) -> Option<Self::Item> {
|
||||
self.inner.next().map(|child| {
|
||||
let previous = self.offset;
|
||||
self.offset += child.size.get(self.orientation);
|
||||
self.offset += *child.size.get(self.orientation);
|
||||
(previous, child)
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user