Skip to content

Commit

Permalink
Add 'dyn' prefixes to trait references
Browse files Browse the repository at this point in the history
As per Rust 2018.
  • Loading branch information
dylanmckay committed Mar 3, 2020
1 parent 0e1c6f8 commit 3e75477
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ mod gen {
mcu.device.name.to_lowercase()
}

pub fn mcu_module_doc(mcu: &Mcu, w: &mut Write)
pub fn mcu_module_doc(mcu: &Mcu, w: &mut dyn Write)
-> Result<(), io::Error> {
writeln!(w, "//! The AVR {} microcontroller", mcu.device.name)?;
writeln!(w, "//!")?;
Expand All @@ -133,7 +133,7 @@ mod gen {
Ok(())
}

pub fn mcu_module_code(mcu: &Mcu, w: &mut Write)
pub fn mcu_module_code(mcu: &Mcu, w: &mut dyn Write)
-> Result<(), io::Error> {
let registers = ordered_registers(mcu);
let register_bitfields = documentable_bitfields(&registers);
Expand Down

0 comments on commit 3e75477

Please sign in to comment.