From cefd5dc50548b846b2f383c1a0d2a5168cd2553a Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Wed, 16 Sep 2020 01:46:41 +0200 Subject: write_since(): Take an arbitrary `Write`r Instead of always printing to standard output, have the function take a writer to write the output to. --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 2648353..60f12d8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -4,5 +4,5 @@ use git_todo::write_since; fn main() { - write_since(); + write_since(&mut std::io::stdout()); } -- cgit v1.2.3