Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bare_trait_objects warnings #110

Merged
merged 1 commit into from Jul 1, 2019

Conversation

jakubadamw
Copy link

This commit fixes warnings such as this one:

warning: trait objects without an explicit `dyn` are deprecated
 --> fluent-fallback\src\lib.rs:9:15
  |
9 |     iter: Box<Iterator<Item = FluentBundle<'loc>> + 'loc>,
  |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Iterator<Item = FluentBundle<'loc>> + 'loc`
  |
  = note: #[warn(bare_trait_objects)] on by default

using the dyn keyword that's part of Rust 2018.

This commit fixes warnings such as this one:

```
warning: trait objects without an explicit `dyn` are deprecated
 --> fluent-fallback\src\lib.rs:9:15
  |
9 |     iter: Box<Iterator<Item = FluentBundle<'loc>> + 'loc>,
  |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Iterator<Item = FluentBundle<'loc>> + 'loc`
  |
  = note: #[warn(bare_trait_objects)] on by default
```

using the `dyn` keyword that's part of Rust 2018.
@zbraniecki
Copy link
Collaborator

Thank you!

@zbraniecki zbraniecki merged commit 9085603 into projectfluent:master Jul 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants