diff options
author | Ryan Geary <rtgnj42@gmail.com> | 2020-06-24 21:08:15 -0400 |
---|---|---|
committer | Ryan Geary <rtgnj42@gmail.com> | 2020-06-24 22:15:08 -0400 |
commit | 67ddbec6b59f8b79ca958bca2ce7cdf0507c3fdb (patch) | |
tree | 195e963fa1e6496f09525a316d444481fe6879b0 /src/writeable.rs | |
parent | 2ee77aa848be60acdf75b02cf2a8c0ff97196ad1 (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.rs | 2 |
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]>; } |