diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2021-05-22 15:14:06 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2021-05-22 15:14:06 +0100 |
commit | 1ff9fff8fcbe9ed65176b491db85dfc44e30e23c (patch) | |
tree | 18aa2d82386a4ce88aeadcc040186b64b5238f42 /subplotlib | |
parent | de06d306a8cb241e7689d3f40082efd7cf7b383d (diff) | |
download | subplot-1ff9fff8fcbe9ed65176b491db85dfc44e30e23c.tar.gz |
subplotlib: Fix doctests in file module
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'subplotlib')
-rw-r--r-- | subplotlib/src/file.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/subplotlib/src/file.rs b/subplotlib/src/file.rs index e44c0ef..f695a89 100644 --- a/subplotlib/src/file.rs +++ b/subplotlib/src/file.rs @@ -18,11 +18,15 @@ use base64::decode; /// /// ```rust /// # use subplotlib::prelude::*; +/// # #[derive(Default)] /// # struct Context {} +/// # impl ContextElement for Context {} /// #[step] /// fn step_using_a_file(context: &mut Context, somefile: SubplotDataFile) { /// // context.stash_file(somefile); /// } +/// +/// # fn main() {} /// ``` /// /// For the generated test to correctly recognise how to pass a file in, you |