summaryrefslogtreecommitdiffstats
path: root/src/writeable.rs
diff options
context:
space:
mode:
authorRyan Geary <rtgnj42@gmail.com>2020-06-24 21:08:15 -0400
committerRyan Geary <rtgnj42@gmail.com>2020-06-24 22:15:08 -0400
commit67ddbec6b59f8b79ca958bca2ce7cdf0507c3fdb (patch)
tree195e963fa1e6496f09525a316d444481fe6879b0 /src/writeable.rs
parent2ee77aa848be60acdf75b02cf2a8c0ff97196ad1 (diff)
Use LineWriter when input is stdin (#10)feature/print-lines-when-stdin-is-pipe
Diffstat (limited to 'src/writeable.rs')
-rw-r--r--src/writeable.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/writeable.rs b/src/writeable.rs
index 8dadde3..658b086 100644
--- a/src/writeable.rs
+++ b/src/writeable.rs
@@ -1,4 +1,4 @@
-pub trait Writeable {
+pub trait Writeable: Copy {
fn to_byte_buf(&self) -> Box<[u8]>;
}