diff options
Diffstat (limited to 'src/deck.rs')
-rw-r--r-- | src/deck.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/deck.rs b/src/deck.rs index 384ce19..0fe8a7b 100644 --- a/src/deck.rs +++ b/src/deck.rs @@ -23,8 +23,8 @@ impl std::error::Error for ParseError { } -pub fn read() -> Result<Vec<Entry>> { - let file = File::open("deck")?; +pub fn read(deck: String) -> Result<Vec<Entry>> { + let file = File::open(deck)?; let reader = BufReader::new(file); let mut entries: Vec<Entry> = Vec::new(); |