aboutsummaryrefslogtreecommitdiff
path: root/src/format/energymech.rs
diff options
context:
space:
mode:
authorTill Höppner2016-01-23 17:18:39 +0100
committerTill Höppner2016-01-23 17:18:39 +0100
commitb2d8cce90a50e7e68d425a6c692ce401d63de171 (patch)
treea7bca6ea7654eaa4768424e2969bcfd4b48c89f4 /src/format/energymech.rs
parent71984f6cf07d3205ebfa3ffada41cf182236bfd4 (diff)
downloadilc-b2d8cce90a50e7e68d425a6c692ce401d63de171.tar.gz
ilc-b2d8cce90a50e7e68d425a6c692ce401d63de171.tar.xz
ilc-b2d8cce90a50e7e68d425a6c692ce401d63de171.zip
Fix compilation, fix dependencies
Diffstat (limited to 'src/format/energymech.rs')
-rw-r--r--src/format/energymech.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/format/energymech.rs b/src/format/energymech.rs
index 5965dfa..ba82458 100644
--- a/src/format/energymech.rs
+++ b/src/format/energymech.rs
@@ -153,8 +153,8 @@ impl<'a> Iterator for Iter<'a> {
}
}
-impl<'a> Decode<'a> for Energymech {
- fn decode(&'a mut self, context: &'a Context, input: &'a mut BufRead) -> Box<Iterator<Item = ::Result<Event<'a>>> + 'a> {
+impl Decode for Energymech {
+ fn decode<'a>(&'a mut self, context: &'a Context, input: &'a mut BufRead) -> Box<Iterator<Item = ::Result<Event<'a>>> + 'a> {
Box::new(Iter {
context: context,
input: input,
@@ -163,8 +163,8 @@ impl<'a> Decode<'a> for Energymech {
}
}
-impl<'a, W> Encode<'a, W> for Energymech where W: Write {
- fn encode(&'a self, context: &'a Context, mut output: W, event: &'a Event) -> ::Result<()> {
+impl Encode for Energymech {
+ fn encode<'a>(&'a self, context: &'a Context, mut output: &'a mut Write, event: &'a Event) -> ::Result<()> {
match event {
&Event { ty: Type::Msg { ref from, ref content }, ref time, .. } => {
try!(writeln!(&mut output, "[{}] <{}> {}",