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

fs/filesystem: make trait bounds more concise #227

Merged
merged 1 commit into from
Jan 26, 2024

Conversation

00xc
Copy link
Member

@00xc 00xc commented Jan 25, 2024

Fix the following clippy warning that comes up with the nightly toolchain:

warning: this bound is already specified as the supertrait of `DoubleEndedIterator`
   --> src/fs/filesystem.rs:260:47
    |
260 | fn split_path_allow_empty(path: &str) -> impl Iterator<Item = &str> + DoubleEndedIterator {
    |                                               ^^^^^^^^^^^^^^^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#implied_bounds_in_impls
    = note: `#[warn(clippy::implied_bounds_in_impls)]` on by default
help: try removing this bound
    |
260 - fn split_path_allow_empty(path: &str) -> impl Iterator<Item = &str> + DoubleEndedIterator {
260 + fn split_path_allow_empty(path: &str) -> impl DoubleEndedIterator<Item = &str> {

Fix the following clippy warning that comes up with the nightly
toolchain:

warning: this bound is already specified as the supertrait of `DoubleEndedIterator`
   --> src/fs/filesystem.rs:260:47
    |
260 | fn split_path_allow_empty(path: &str) -> impl Iterator<Item = &str> + DoubleEndedIterator {
    |                                               ^^^^^^^^^^^^^^^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#implied_bounds_in_impls
    = note: `#[warn(clippy::implied_bounds_in_impls)]` on by default
help: try removing this bound
    |
260 - fn split_path_allow_empty(path: &str) -> impl Iterator<Item = &str> + DoubleEndedIterator {
260 + fn split_path_allow_empty(path: &str) -> impl DoubleEndedIterator<Item = &str> {

Signed-off-by: Carlos López <[email protected]>
@joergroedel joergroedel merged commit 0328675 into coconut-svsm:main Jan 26, 2024
2 checks passed
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.

2 participants