Skip to content

Fix clippy config #1893

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
Nov 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
IFS=$'\n\t'
# Check if the code is good
cargo build --all --locked
cargo clippy -- --deny warnings
cargo test --all --locked

- name: Build the Docker image
Expand Down
3 changes: 1 addition & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![cfg_attr(test, deny(warnings))]

#[macro_use]
extern crate lazy_static;
extern crate rand;
Expand Down Expand Up @@ -284,6 +282,7 @@ fn redirect_bare_en_us() -> Redirect {
}

#[catch(404)]
#[allow(clippy::result_large_err)]
fn not_found(req: &Request) -> Result<Template, Redirect> {
if let Some(redirect) = crate::redirect::maybe_redirect(req.uri().path()) {
return Err(redirect);
Expand Down
2 changes: 1 addition & 1 deletion src/teams.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ impl Data {
let mut subteams = Vec::with_capacity(raw_subteams.len());
lay_out_subteams_hierarchically(&mut subteams, None, &main_team.name, &raw_subteams);

fn lay_out_subteams_hierarchically<'a>(
fn lay_out_subteams_hierarchically(
result: &mut Vec<Team>,
team: Option<&Team>,
main_team: &str,
Expand Down