You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix warnings about trait objects requiring 'dyn' keyword
When using Rust 1.37 a missing 'dyn' in conjunction with a trait object is now
emitting a warning (see [Rust issue #61203][issue-61203]), causing all generated
programs to warn as well:
> warning: trait objects without an explicit `dyn` are deprecated
> --> src/valmap.rs:36:34
> |
> 36 | pub fn format(&self, w: &mut io::Write) -> io::Result<()> {
> | ^^^^^^^^^ help: use `dyn`: `dyn io::Write`
> |
> = note: #[warn(bare_trait_objects)] on by default
Let's remove these warnings by adding this keyword to the uses of trait objects
in the project template.
[issue-61203]: rust-lang/rust#61203
0 commit comments