Skip to content

Format rust code #973

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

Merged
merged 1 commit into from
Jul 28, 2025
Merged

Conversation

lovasoa
Copy link
Collaborator

@lovasoa lovasoa commented Jul 26, 2025

Run cargo fmt to apply standard Rust formatting.


Open in WebOpen in CursorOpen Docs

Co-authored-by: contact <contact@ophir.dev>
@lovasoa lovasoa marked this pull request as ready for review July 28, 2025 07:54
@lovasoa lovasoa merged commit 7ef0109 into 404-without-trailing-slash Jul 28, 2025
@lovasoa lovasoa deleted the cursor/format-rust-code-7802 branch July 28, 2025 07:54
lovasoa added a commit that referenced this pull request Jul 28, 2025
* Check for 404 before redirecting on no-extension paths

The commit improves routing logic by checking if a path would result in
a 404

fixes #971 before adding a
trailing slash. This prevents unnecessary redirects when a custom 404
handler exists.

* Fix test function signature formatting in routing module (#973)

Co-authored-by: Cursor Agent <cursoragent@cursor.com>

* Simplify path resolution and redirect logic

The shorter code more clearly handles finding files with .sql extensions
and decides whether to add trailing slashes based on index file
presence.

* clippy

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
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