From 494f71a6d7697ecda2e837a96c8788ae235d1296 Mon Sep 17 00:00:00 2001 From: Denis Cornehl Date: Thu, 11 Dec 2025 17:43:31 +0100 Subject: [PATCH 1/2] ugprade to rust 1.92 --- dockerfiles/Dockerfile | 2 +- rust-toolchain.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dockerfiles/Dockerfile b/dockerfiles/Dockerfile index 1cf4cd981..5b7c398d2 100644 --- a/dockerfiles/Dockerfile +++ b/dockerfiles/Dockerfile @@ -12,7 +12,7 @@ # Build stage # ################# -FROM rust:1.91-slim-trixie AS build +FROM rust:1.92-slim-trixie AS build ENV DEBIAN_FRONTEND=noninteractive diff --git a/rust-toolchain.toml b/rust-toolchain.toml index cdeba7a2b..1a2165581 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,3 +1,3 @@ [toolchain] -channel = "1.91.0" +channel = "1.92.0" components = ["rustfmt", "clippy"] From 22ff5f0444e5282df1fcbf2774a057d136328049 Mon Sep 17 00:00:00 2001 From: Denis Cornehl Date: Fri, 12 Dec 2025 00:54:44 +0100 Subject: [PATCH 2/2] fix new clippy errors --- src/storage/mod.rs | 2 +- src/utils/html.rs | 2 +- src/web/error.rs | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/storage/mod.rs b/src/storage/mod.rs index bc515475a..2cd74b823 100644 --- a/src/storage/mod.rs +++ b/src/storage/mod.rs @@ -45,7 +45,7 @@ use tokio::{ runtime, sync::Mutex, }; -use tracing::{debug, error, info_span, instrument, trace, warn}; +use tracing::{debug, info_span, instrument, trace, warn}; use walkdir::WalkDir; const ARCHIVE_INDEX_FILE_EXTENSION: &str = "index"; diff --git a/src/utils/html.rs b/src/utils/html.rs index 891655270..f0da4f655 100644 --- a/src/utils/html.rs +++ b/src/utils/html.rs @@ -18,7 +18,7 @@ use lol_html::{element, errors::RewritingError}; use std::sync::Arc; use tokio::{io::AsyncRead, task::JoinHandle}; use tokio_util::io::ReaderStream; -use tracing::{Span, error, instrument}; +use tracing::{Span, instrument}; use tracing_futures::Instrument as _; const CHANNEL_SIZE: usize = 64; diff --git a/src/web/error.rs b/src/web/error.rs index 70dec0844..db9ed92a4 100644 --- a/src/web/error.rs +++ b/src/web/error.rs @@ -10,7 +10,6 @@ use axum::{ response::{IntoResponse, Response as AxumResponse}, }; use std::borrow::Cow; -use tracing::error; #[derive(Debug, thiserror::Error)] pub enum AxumNope {