summaryrefslogtreecommitdiffstats
path: root/src/options.rs
diff options
context:
space:
mode:
authorBen S <ogham@bsago.me>2015-09-04 11:30:46 +0100
committerBen S <ogham@bsago.me>2015-09-04 11:30:46 +0100
commit65967355a88a4e6503e01e88100dedc3195109de (patch)
treec9fe10f6e7f37e1f99434e2cbd86fcaf89eabc56 /src/options.rs
parentd1e682b0c185449802b060555fee035233b8e154 (diff)
Make sure we check the ioctl term size result
Diffstat (limited to 'src/options.rs')
-rw-r--r--src/options.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/options.rs b/src/options.rs
index 44d055f..bf2f4a3 100644
--- a/src/options.rs
+++ b/src/options.rs
@@ -28,6 +28,7 @@ pub struct Options {
impl Options {
/// Call getopts on the given slice of command-line strings.
+ #[allow(unused_results)]
pub fn getopts(args: &[String]) -> Result<(Options, Vec<String>), Misfire> {
let mut opts = getopts::Options::new();
opts.optflag("1", "oneline", "display one entry per line");