summaryrefslogtreecommitdiff
path: root/src/doc.rs
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2022-04-10 15:35:48 +0300
committerLars Wirzenius <liw@liw.fi>2022-04-10 15:58:26 +0300
commit67bd6febf2b8d229a217160829c201284f9e7503 (patch)
treede3f6d9f46b0706ad6796ad6ecdce9565a37b6c0 /src/doc.rs
parent7f9a8727a1f8d7f66837322262ef24c64dc8ed5c (diff)
downloadsubplot-67bd6febf2b8d229a217160829c201284f9e7503.tar.gz
use Option<&str> instead of &Option<String>
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 bf06625..89b9eea 100644
--- a/src/doc.rs
+++ b/src/doc.rs
@@ -229,7 +229,7 @@ impl<'a> Document {
///
/// The sources are any files that affect the output so that if
/// the source file changes, the output needs to be re-generated.
- pub fn sources(&mut self, template: &Option<String>) -> Vec<PathBuf> {
+ pub fn sources(&mut self, template: Option<&str>) -> Vec<PathBuf> {
let mut names = vec![];
for x in self.meta().bindings_filenames() {