-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
1 addition
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
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
3a5bf00
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The idea of the
prelude
submodules incapture
andusb
was to have a simple way to import all the public types from those modules, specifically so that it's not necessary to keep editing the list of imports.I think it's pretty dumb for clippy to warn about unused imports when those imports were brought in via a
use prelude::*
statement, and I'd be inclined to file that as a bug.Perhaps there's some way we can mark the preludes as "don't warn if these are not used"? I can't see anything like that on the gtk
prelude
module, though, and we don't get warnings about unused imports there.3a5bf00
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yeah, my bad, I should've spotted that. I've opened #85 to re-add them and squelch the warnings.
I guess it may be warning here and not in gtk because we're not building as a library?
3a5bf00
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's clippy's bad, not yours, but I'm not sufficiently sure what changed or what the correct behaviour should be to file a bug about it.
And yeah, I expect those modules not being public in
lib.rs
is part of why it happens.