Skip to content

Commit 2851be4

Browse files
authored
Merge pull request #201 from tmpfs/trait-dispatch
Fix stack overflow when receiver is typed as embedded_io trait
2 parents e5d7a8a + a707d30 commit 2851be4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/filesystem/files.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ impl<
190190
if buf.is_empty() {
191191
Ok(0)
192192
} else {
193-
self.read(buf)
193+
File::read(self, buf)
194194
}
195195
}
196196
}
@@ -207,7 +207,7 @@ impl<
207207
if buf.is_empty() {
208208
Ok(0)
209209
} else {
210-
self.write(buf)?;
210+
File::write(self, buf)?;
211211
Ok(buf.len())
212212
}
213213
}

0 commit comments

Comments
 (0)