aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTeddy Wing2018-04-13 21:01:33 +0200
committerTeddy Wing2018-04-13 21:02:37 +0200
commit21fcbee24225cae8b211e0a746ba1ab593b4f2e8 (patch)
treebed272f4fc13bb6e30230ff1dfc662e229e6d87b /src
parentafb4bb95afeff4841487a83fc0714509eb6a722e (diff)
downloadmeetup-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.
Diffstat (limited to 'src')
-rw-r--r--src/meetup_rss.rs2
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);
}