diff options
author | Lars Wirzenius <liw@liw.fi> | 2022-04-10 15:35:48 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2022-04-10 15:58:26 +0300 |
commit | 67bd6febf2b8d229a217160829c201284f9e7503 (patch) | |
tree | de3f6d9f46b0706ad6796ad6ecdce9565a37b6c0 /src/doc.rs | |
parent | 7f9a8727a1f8d7f66837322262ef24c64dc8ed5c (diff) | |
download | subplot-67bd6febf2b8d229a217160829c201284f9e7503.tar.gz |
use Option<&str> instead of &Option<String>
Sponsored-by: author
Diffstat (limited to 'src/doc.rs')
-rw-r--r-- | src/doc.rs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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() { |