Skip to content

Commit

Permalink
Add dyn to fix deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinmehall committed Oct 3, 2019
1 parent 5e19dac commit 8deedee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/write.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use {

/// Struct wrapping an `io::Write` with methods for writing VCD commands and data.
pub struct Writer<'w> {
writer: &'w mut io::Write,
writer: &'w mut dyn io::Write,
next_id_code: IdCode,
scope_depth: usize,
}
Expand All @@ -29,7 +29,7 @@ impl<'s> Writer<'s> {
/// let mut buf = Vec::new();
/// let mut vcd = vcd::Writer::new(&mut buf);
/// ```
pub fn new(writer: &mut io::Write) -> Writer {
pub fn new(writer: &mut dyn io::Write) -> Writer {
Writer { writer: writer, next_id_code: IdCode::FIRST, scope_depth: 0 }
}

Expand Down

0 comments on commit 8deedee

Please sign in to comment.