summaryrefslogtreecommitdiff
path: root/src/doc.rs
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2023-01-28 19:56:11 +0200
committerLars Wirzenius <liw@liw.fi>2023-02-01 17:49:03 +0200
commit4892ab97637c3727834248aba19b0407439c1f5f (patch)
tree3d5cc2fc82603dfc008fc1742f2521e35d839722 /src/doc.rs
parente7861cabfc610291d534ae078765a71dc7007c7e (diff)
downloadsubplot-4892ab97637c3727834248aba19b0407439c1f5f.tar.gz
refactor: only mutating methods on Markdown require mutable self
Use RefCell's interior mutability to work around the fact that pandoc_ast's MutVisitor requires a mutable reference to self. Sponsored-by: author
Diffstat (limited to 'src/doc.rs')
-rw-r--r--src/doc.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc.rs b/src/doc.rs
index a39ab99..e860726 100644
--- a/src/doc.rs
+++ b/src/doc.rs
@@ -105,7 +105,7 @@ impl Document {
subplot: PathBuf,
markdowns: Vec<PathBuf>,
yamlmeta: &YamlMetadata,
- mut md: Markdown,
+ md: Markdown,
style: Style,
template: Option<&str>,
) -> Result<Document, SubplotError>