Skip to content

Commit

Permalink
Use dyn for a dynamic trait
Browse files Browse the repository at this point in the history
`Muxer` is a trait, and passing dynamic traits without the `dyn` keyword is now deprecated.
  • Loading branch information
linkmauve authored and lu-zero committed Jun 4, 2019
1 parent 12f041f commit b9bccd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bin/rav1e.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ fn write_stats_file<T: Pixel>(ctx: &Context<T>, filename: &Path) -> Result<(), i

fn do_encode<T: Pixel, D: Decoder>(
cfg: Config, verbose: bool, mut progress: ProgressInfo,
output: &mut Muxer,
output: &mut dyn Muxer,
source: &mut Source<D>,
mut y4m_enc: Option<y4m::Encoder<'_, Box<dyn Write>>>
) {
Expand Down

0 comments on commit b9bccd1

Please sign in to comment.