Skip to content

Commit

Permalink
Switch to clippy lints table in Cargo.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
ongardie committed Feb 1, 2024
1 parent b28a393 commit 4b3ee1e
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 132 deletions.
9 changes: 9 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,12 @@ toml = "0.8.9"
wildmatch = "2.3.0"

[dev-dependencies]

[lints.clippy]
explicit_into_iter_loop = "warn"
explicit_iter_loop = "warn"
if_then_some_else_none = "warn"
implicit_clone = "warn"
redundant_else = "warn"
try_err = "warn"
unreadable_literal = "warn"
10 changes: 0 additions & 10 deletions src/bin/gen_github_yaml.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
#![warn(
clippy::explicit_into_iter_loop,
clippy::explicit_iter_loop,
clippy::if_then_some_else_none,
clippy::implicit_clone,
clippy::redundant_else,
clippy::try_err,
clippy::unreadable_literal
)]

//! This program generates `.github/workflows/main.yaml`, used by GitHub
//! Actions. This program is a development time utility that is part of the
//! Cubicle project.
Expand Down
9 changes: 0 additions & 9 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
#![warn(
clippy::explicit_into_iter_loop,
clippy::explicit_iter_loop,
clippy::if_then_some_else_none,
clippy::implicit_clone,
clippy::redundant_else,
clippy::try_err,
clippy::unreadable_literal
)]
#![warn(missing_docs)]

//! This crate is the library underneath the Cubicle command-line program.
Expand Down
10 changes: 0 additions & 10 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
#![warn(
clippy::explicit_into_iter_loop,
clippy::explicit_iter_loop,
clippy::if_then_some_else_none,
clippy::implicit_clone,
clippy::redundant_else,
clippy::try_err,
clippy::unreadable_literal
)]

mod cli;

use cubicle::{config::Config, Cubicle, Result};
Expand Down
103 changes: 0 additions & 103 deletions tests/file_header.rs

This file was deleted.

0 comments on commit 4b3ee1e

Please sign in to comment.