Can't build after termion update
Created by: Powersource
Rolling back this commit https://github.com/redox-os/extrautils/commit/63c35e277b74b8841386cae1fd8e91099200858f makes compiling work again. If I'd make a guess you updated termion locally but didn't commit it.
A bit off topic but as a rust noob I wonder, controls
is type Read
but you can run .keys()
on it even if as far as I can see, io::Read
doesn't provide that.
me@pc[rust/extrautils]% cargo build --verbose
Fresh libc v0.2.11
Fresh extra v0.1.0 (https://github.com/redox-os/libextra.git#3946ef27)
Fresh termion v0.1.0 (https://github.com/Ticki/termion.git#119cbda7)
Compiling extrautils v0.1.0 (file:///mnt/hdd/home/me/prj/rust/extrautils)
Running `rustc src/bin/less.rs --crate-name less --crate-type bin -g --out-dir /mnt/hdd/home/me/prj/rust/extrautils/target/debug --emit=dep-info,link -L dependency=/mnt/hdd/home/me/prj/rust/extrautils/target/debug -L dependency=/mnt/hdd/home/me/prj/rust/extrautils/target/debug/deps --extern termion=/mnt/hdd/home/me/prj/rust/extrautils/target/debug/deps/libtermion-9a7f1bec54791087.rlib --extern extra=/mnt/hdd/home/me/prj/rust/extrautils/target/debug/deps/libextra-dbb0bf05fff66118.rlib`
src/bin/less.rs:181:17: 181:23 error: no method named `unwrap` found for type `termion::Key` in the current scope
src/bin/less.rs:181 match c.unwrap() {
^~~~~~
error: aborting due to previous error
error: Could not compile `extrautils`.
Caused by:
Process didn't exit successfully: `rustc src/bin/less.rs --crate-name less --crate-type bin -g --out-dir /mnt/hdd/home/me/prj/rust/extrautils/target/debug --emit=dep-info,link -L dependency=/mnt/hdd/home/me/prj/rust/extrautils/target/debug -L dependency=/mnt/hdd/home/me/prj/rust/extrautils/target/debug/deps --extern termion=/mnt/hdd/home/me/prj/rust/extrautils/target/debug/deps/libtermion-9a7f1bec54791087.rlib --extern extra=/mnt/hdd/home/me/prj/rust/extrautils/target/debug/deps/libextra-dbb0bf05fff66118.rlib` (exit code: 101)
me@pc[rust/extrautils]% cargo --version
cargo 0.13.0-nightly (15c1cd2 2016-07-17)
me@pc[rust/extrautils]% rustc --version
rustc 1.12.0-nightly (34f35ed29 2016-07-17)