diff options
author | Lars Wirzenius <liw@liw.fi> | 2023-01-28 19:56:11 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2023-02-01 17:49:03 +0200 |
commit | 4892ab97637c3727834248aba19b0407439c1f5f (patch) | |
tree | 3d5cc2fc82603dfc008fc1742f2521e35d839722 /src/doc.rs | |
parent | e7861cabfc610291d534ae078765a71dc7007c7e (diff) | |
download | subplot-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.rs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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> |