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

None filter #724

Open
Kestrer opened this issue Oct 15, 2020 · 0 comments
Open

None filter #724

Kestrer opened this issue Oct 15, 2020 · 0 comments
Labels
feature New feature or request

Comments

@Kestrer
Copy link
Contributor

Kestrer commented Oct 15, 2020

In chains of ors, it can look nice to have all the branches look equal. For example:

route_1
    .or(route_2)
    .or(route_3)

This doesn't look nice as the first route is at a different indentation level to all the other routes, and isn't surrounded by brackets.

If a none/no filter was added to Warp (opposite of any), the above could be written as:

warp::none()
    .or(route_1)
    .or(route_2)
    .or(route_3)

Which allows the code to look cleaner and more consistent.

@Kestrer Kestrer added the feature New feature or request label Oct 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant