diff options
author | Daniel Silverstone <dsilvers+gitlab@digital-scurf.org> | 2022-09-03 09:45:23 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers+gitlab@digital-scurf.org> | 2022-09-03 09:45:23 +0000 |
commit | da1aea95d5304ac5dd8c4658acf5bd3efaee0fa8 (patch) | |
tree | 676130f43ff2270f2f2ef116cc927214a67983ad /src/bin/cli/mod.rs | |
parent | 404006dfb651687713b7b8aa3183ed5c2fbe8acb (diff) | |
parent | c4b98e69050a94cac865af4d5f92985b9e5262b3 (diff) | |
download | subplot-da1aea95d5304ac5dd8c4658acf5bd3efaee0fa8.tar.gz |
Merge branch 'liw/refactor' into 'main'
Refactoring ready for YAML-from-separate-file
See merge request subplot/subplot!286
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); |