Fix ci failures (#3432)

This commit is contained in:
Glen De Cauwsemaecker 2025-08-13 10:53:53 +02:00 committed by GitHub
parent 7f5cea0e6b
commit d66cabd5e9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -134,13 +134,13 @@
//! it is simple to convert errors into responses and you are guaranteed that
//! all errors are handled.
//!
//! See [`error_handling`](crate::error_handling) for more details on axum's
//! See [`error_handling`] for more details on axum's
//! error handling model and how to handle errors gracefully.
//!
//! # Middleware
//!
//! There are several different ways to write middleware for axum. See
//! [`middleware`](crate::middleware) for more details.
//! [`middleware`] for more details.
//!
//! # Sharing state with handlers
//!
@ -190,7 +190,7 @@
//!
//! ## Using request extensions
//!
//! Another way to share state with handlers is using [`Extension`](crate::extract::Extension) as
//! Another way to share state with handlers is using [`Extension`] as
//! layer and extractor:
//!
//! ```rust,no_run

View File

@ -212,7 +212,7 @@ mod time_library {
static COUNTER: AtomicU64 = AtomicU64::new(0);
// Fail on every third call just to simulate errors
if COUNTER.fetch_add(1, Ordering::SeqCst) % 3 == 0 {
if COUNTER.fetch_add(1, Ordering::SeqCst).is_multiple_of(3) {
Err(Error::FailedToGetTime)
} else {
Ok(Self(1337))