gchp / iota

A terminal-based text editor written in Rust
MIT License
1.63k stars 81 forks source link

OSX build failing #32

Closed gchp closed 9 years ago

gchp commented 9 years ago

Build is failing right now on master on osx yosemite: rustc 0.13.0-nightly (ffc111889 2014-12-12 21:07:19 +0000)

src/iota/view.rs:183:25: 183:51 error: cannot infer an appropriate lifetime for lifetime parameter 'a in function call due to conflicting requirements
src/iota/view.rs:183         let line = &mut self.buffer.lines[linenum];
                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~
src/iota/view.rs:182:5: 185:6 help: consider using an explicit lifetime parameter as shown: fn set_cursor_line(&'v mut self, linenum: uint)
src/iota/view.rs:182     fn set_cursor_line(&mut self, linenum: uint) {
src/iota/view.rs:183         let line = &mut self.buffer.lines[linenum];
src/iota/view.rs:184         self.cursor.set_line(Some(line));
src/iota/view.rs:185     }
gchp commented 9 years ago

Fixed in b6afacff83