-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
Showing
2 changed files
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters