won't compile on linux
Created by: lucklove
The dialog show as:
[lucklove@host libextra]$ cargo build
Compiling extra v0.1.0 (file:///tmp/libextra)
src/io.rs:23:22: 23:33 error: this function takes 1 parameter but 0 parameters were supplied [E0061]
src/io.rs:23 let utf8 = c.encode_utf8();
^~~~~~~~~~~
src/io.rs:23:22: 23:33 help: run `rustc --explain E0061` to see a detailed explanation
src/io.rs:24:25: 24:33 error: no method named `as_slice` found for type `core::option::Option<usize>` in the current scope
src/io.rs:24 self.write(utf8.as_slice())
^~~~~~~~
error: aborting due to 2 previous errors
error: Could not compile `extra`.
To learn more, run the command again with --verbose.