mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-24 01:46:31 +00:00
Fix compilation
This commit is contained in:
parent
aaf41f3ec4
commit
def6b3af27
@ -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};
|
||||||
|
@ -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)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user