diff options
author | Teddy Wing | 2018-04-13 21:01:33 +0200 |
---|---|---|
committer | Teddy Wing | 2018-04-13 21:02:37 +0200 |
commit | 21fcbee24225cae8b211e0a746ba1ab593b4f2e8 (patch) | |
tree | bed272f4fc13bb6e30230ff1dfc662e229e6d87b | |
parent | afb4bb95afeff4841487a83fc0714509eb6a722e (diff) | |
download | meetup-find-events-rss-21fcbee24225cae8b211e0a746ba1ab593b4f2e8.tar.bz2 |
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.
-rw-r--r-- | src/meetup_rss.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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<Event>) -> Result<Channel, String> { /// 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); } |