Compare commits

..

1 Commits

Author SHA1 Message Date
80cf605960 chore: enable Clippy pedantic lints
Some checks failed
actionlint check / actionlint check (pull_request) Successful in 7s
conventional pull request title check / conventional pull request title check (pull_request) Successful in 3s
conventional commit messages check / conventional commit messages check (pull_request) Successful in 6s
dotenv-linter check / dotenv-linter check (pull_request) Successful in 7s
GitLeaks check / GitLeaks check (pull_request) Successful in 14s
hadolint check / hadolint check (pull_request) Successful in 37s
htmlhint check / htmlhint check (pull_request) Successful in 36s
checkov check / checkov check (pull_request) Successful in 1m24s
Prettier check / Prettier check (pull_request) Successful in 37s
markdownlint check / markdownlint check (pull_request) Successful in 1m2s
ShellCheck check / ShellCheck check (pull_request) Successful in 30s
Stylelint check / Stylelint check (pull_request) Successful in 32s
yamllint check / yamllint check (pull_request) Successful in 32s
Rust check / Rust check (pull_request) Failing after 10m21s
2026-02-09 18:29:01 +01:00
4 changed files with 4 additions and 11 deletions

View File

@@ -1,7 +1,4 @@
#![warn(clippy::pedantic)]
#![allow(clippy::unused_async)]
// TODO: Enable once false positives are fixed.
#![allow(clippy::assigning_clones)]
mod components;
mod dotenv;

View File

@@ -41,7 +41,6 @@ pub enum Category {
#[cfg(feature = "server")]
impl Category {
pub fn eq_sql_predicate(&self) -> Box<dyn BoxableExpression<tasks::table, Pg, SqlType = Bool>> {
#![allow(clippy::wildcard_imports)]
use crate::schema::tasks::dsl::*;
match self {

View File

@@ -1,6 +1,3 @@
// For Diesel DSL.
#![allow(clippy::wildcard_imports)]
#[cfg(feature = "server")]
pub(crate) mod database_connection;
pub(crate) mod projects;

View File

@@ -138,7 +138,7 @@ pub(crate) async fn complete_task(task_id: i32) -> Result<Task> {
} = &mut new_task.category
{
match reoccurrence.interval {
ReoccurrenceInterval::Day => *date = *date + Days::new(u64::from(reoccurrence.length)),
ReoccurrenceInterval::Day => *date = *date + Days::new(reoccurrence.length as u64),
ReoccurrenceInterval::Month | ReoccurrenceInterval::Year => {
*date = *date
+ Months::new(
@@ -153,12 +153,12 @@ pub(crate) async fn complete_task(task_id: i32) -> Result<Task> {
date.year(),
date.month(),
reoccurrence.start_date.day().min(
u32::from(Month::try_from(u8::try_from(date.month()).unwrap())
Month::try_from(date.month() as u8)
.unwrap()
.length(date.year())),
.length(date.year()) as u32,
),
)
.unwrap();
.unwrap()
}
}
restore_subtasks_of_task(task_id).await?;