From 21fcbee24225cae8b211e0a746ba1ab593b4f2e8 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Fri, 13 Apr 2018 21:01:33 +0200 Subject: meetup_rss(write): Remove `mut` from the `stdout` handle I had copied this from an example in the docs, but the compiler tells me the `mut` isn't needed. Cool. --- src/meetup_rss.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/meetup_rss.rs') diff --git a/src/meetup_rss.rs b/src/meetup_rss.rs index ed58be8..b995571 100644 --- a/src/meetup_rss.rs +++ b/src/meetup_rss.rs @@ -26,7 +26,7 @@ pub fn generate(events: &Vec) -> Result { /// Writes the channel to standard output. pub fn write(channel: Channel) { let stdout = io::stdout(); - let mut handle = stdout.lock(); + let handle = stdout.lock(); channel.write_to(handle); } -- cgit v1.2.3