aboutsummaryrefslogtreecommitdiff
path: root/src/makefile/input.rs
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2021-04-20 19:30:49 -0600
committerMelody Horn <melody@boringcactus.com>2021-04-20 19:30:49 -0600
commite0db38988af0f606a6aea1999d89b3abf62dae24 (patch)
tree3249c02a6247877227f70679ae29ad195dfc961d /src/makefile/input.rs
parentb233781efde7ac6f0e1a88bbf6003ac1103045b1 (diff)
downloadmakers-e0db38988af0f606a6aea1999d89b3abf62dae24.tar.gz
makers-e0db38988af0f606a6aea1999d89b3abf62dae24.zip
skip more things on posix that aren't needed thereHEADcanon
Diffstat (limited to 'src/makefile/input.rs')
-rw-r--r--src/makefile/input.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/makefile/input.rs b/src/makefile/input.rs
index c2f8e7b..318493b 100644
--- a/src/makefile/input.rs
+++ b/src/makefile/input.rs
@@ -2,7 +2,9 @@ use std::cell::{Cell, RefCell};
use std::collections::HashMap;
use std::error::Error as StdError;
use std::fs::File;
-use std::io::{BufRead, BufReader, Cursor, Error as IoError, ErrorKind as IoErrorKind, Lines};
+#[cfg(feature = "full")]
+use std::io::Cursor;
+use std::io::{BufRead, BufReader, Error as IoError, ErrorKind as IoErrorKind, Lines};
use std::iter::Peekable;
use std::path::Path;
use std::rc::Rc;
@@ -961,6 +963,8 @@ pub struct FinishedMakefileReader {
mod test {
use super::*;
+ use std::io::Cursor;
+
type R = Result<()>;
#[test]