summaryrefslogtreecommitdiff
path: root/src/bin/subplot.rs
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2023-06-21 05:35:40 +0300
committerLars Wirzenius <liw@liw.fi>2023-06-21 05:35:40 +0300
commit4694b6e7dcf29a01b47eee4a782e5b585cd80c39 (patch)
tree6c0e12feeacc6795726ee585625311c95b07d776 /src/bin/subplot.rs
parentd8e88bcdf5fddab3757d64cb7ca4c355480a8ca5 (diff)
downloadsubplot-4694b6e7dcf29a01b47eee4a782e5b585cd80c39.tar.gz
refactor: rename Document::files to ::embedded_files
This makes it more clear what kind of files we're talking about. The old name could've meant, say, the markdown files. Sponsored-by: author
Diffstat (limited to 'src/bin/subplot.rs')
-rw-r--r--src/bin/subplot.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/subplot.rs b/src/bin/subplot.rs
index ced34cc..6c118d4 100644
--- a/src/bin/subplot.rs
+++ b/src/bin/subplot.rs
@@ -159,7 +159,7 @@ impl Extract {
let doc = load_linted_doc(&self.filename, Style::default(), None, self.merciful)?;
let files: Vec<&EmbeddedFile> = if self.embedded.is_empty() {
- doc.files()
+ doc.embedded_files()
.iter()
.map(Result::Ok)
.collect::<Result<Vec<_>>>()