Fixed some warnings.

This commit is contained in:
Nathan Vegdahl 2015-01-11 01:16:21 -08:00
parent d02459f647
commit d6e28b02a3
3 changed files with 1 additions and 3 deletions

View File

@ -225,7 +225,6 @@ impl Buffer {
}, },
RemoveTextAfter(ref s, p) => { RemoveTextAfter(ref s, p) => {
let size = grapheme_count(s.as_slice());
self._insert_text(s.as_slice(), p); self._insert_text(s.as_slice(), p);
return Some(p); return Some(p);
}, },

View File

@ -1,4 +1,3 @@
#![feature(old_orphan_check)] // Temporary, get rid of this once the new orphan check works well
#![allow(unstable)] #![allow(unstable)]
extern crate rustbox; extern crate rustbox;

View File

@ -219,7 +219,7 @@ impl TermUI {
let mut e = self.rb.poll_event(); // Block until we get an event let mut e = self.rb.poll_event(); // Block until we get an event
loop { loop {
match e { match e {
Ok(rustbox::Event::KeyEvent(modifier, key, character)) => { Ok(rustbox::Event::KeyEvent(_, key, character)) => {
match key { match key {
K_ESC => { K_ESC => {
cancel = true; cancel = true;