diff options
author | Lars Wirzenius <liw@liw.fi> | 2022-09-03 09:25:26 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2022-09-03 09:30:16 +0300 |
commit | 2341869c78cea3647eadd46bbfc7f703541cee0b (patch) | |
tree | 2d870c6eec99a782bbc421bd678003b3ae323515 /src/bin/cli/mod.rs | |
parent | ba31a2ad25fa0ae3f3fd49eaa5174f9520248b90 (diff) | |
download | subplot-2341869c78cea3647eadd46bbfc7f703541cee0b.tar.gz |
refactor: rename DataFile{,s} to EmbeddedFile{,s} to be systematic
Sponsored-by: author
Diffstat (limited to 'src/bin/cli/mod.rs')
-rw-r--r-- | src/bin/cli/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/cli/mod.rs b/src/bin/cli/mod.rs index a16df87..e78a92d 100644 --- a/src/bin/cli/mod.rs +++ b/src/bin/cli/mod.rs @@ -9,9 +9,9 @@ use std::fmt::Debug; use std::path::Path; use std::str::FromStr; use std::{collections::HashMap, convert::TryFrom}; -use subplot::{DataFile, Document, Style, SubplotError}; +use subplot::{Document, EmbeddedFile, Style, SubplotError}; -pub fn extract_file<'a>(doc: &'a Document, filename: &str) -> Result<&'a DataFile> { +pub fn extract_file<'a>(doc: &'a Document, filename: &str) -> Result<&'a EmbeddedFile> { for file in doc.files() { if file.filename() == filename { return Ok(file); |