Skip to content

Commit

Permalink
chore: remove allow(uninlined_format_args)
Browse files Browse the repository at this point in the history
  • Loading branch information
robjtede committed Dec 16, 2023
1 parent c7a0af3 commit 5e5e5d8
Show file tree
Hide file tree
Showing 19 changed files with 6 additions and 31 deletions.
1 change: 0 additions & 1 deletion actix-files/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

#![deny(rust_2018_idioms, nonstandard_style)]
#![warn(future_incompatible, missing_docs, missing_debug_implementations)]
#![allow(clippy::uninlined_format_args)]
#![doc(html_logo_url = "https://actix.rs/img/logo.png")]
#![doc(html_favicon_url = "https://actix.rs/favicon.ico")]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
Expand Down
1 change: 0 additions & 1 deletion actix-http-test/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

#![deny(rust_2018_idioms, nonstandard_style)]
#![warn(future_incompatible)]
#![allow(clippy::uninlined_format_args)]
#![doc(html_logo_url = "https://actix.rs/img/logo.png")]
#![doc(html_favicon_url = "https://actix.rs/favicon.ico")]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
Expand Down
2 changes: 0 additions & 2 deletions actix-http/benches/response-body-compression.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![allow(clippy::uninlined_format_args)]

use std::convert::Infallible;

use actix_http::{encoding::Encoder, ContentEncoding, Request, Response, StatusCode};
Expand Down
3 changes: 1 addition & 2 deletions actix-http/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
#![allow(
clippy::type_complexity,
clippy::too_many_arguments,
clippy::borrow_interior_mutable_const,
clippy::uninlined_format_args
clippy::borrow_interior_mutable_const
)]
#![doc(html_logo_url = "https://actix.rs/img/logo.png")]
#![doc(html_favicon_url = "https://actix.rs/favicon.ico")]
Expand Down
1 change: 0 additions & 1 deletion actix-http/tests/test_openssl.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#![cfg(feature = "openssl")]
#![allow(clippy::uninlined_format_args)]

extern crate tls_openssl as openssl;

Expand Down
2 changes: 0 additions & 2 deletions actix-http/tests/test_ws.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![allow(clippy::uninlined_format_args)]

use std::{
cell::Cell,
convert::Infallible,
Expand Down
2 changes: 1 addition & 1 deletion actix-multipart/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#![deny(rust_2018_idioms, nonstandard_style)]
#![warn(future_incompatible)]
#![allow(clippy::borrow_interior_mutable_const, clippy::uninlined_format_args)]
#![allow(clippy::borrow_interior_mutable_const)]
#![doc(html_logo_url = "https://actix.rs/img/logo.png")]
#![doc(html_favicon_url = "https://actix.rs/favicon.ico")]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
Expand Down
2 changes: 0 additions & 2 deletions actix-router/benches/quoter.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![allow(clippy::uninlined_format_args)]

use std::{borrow::Cow, fmt::Write as _};

use criterion::{black_box, criterion_group, criterion_main, Criterion};
Expand Down
1 change: 0 additions & 1 deletion actix-router/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

#![deny(rust_2018_idioms, nonstandard_style)]
#![warn(future_incompatible)]
#![allow(clippy::uninlined_format_args)]
#![doc(html_logo_url = "https://actix.rs/img/logo.png")]
#![doc(html_favicon_url = "https://actix.rs/favicon.ico")]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
Expand Down
5 changes: 3 additions & 2 deletions actix-router/src/router.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ impl<T, U> RouterBuilder<T, U> {
ctx: U,
) -> (&mut ResourceDef, &mut T, &mut U) {
self.routes.push((rdef, val, ctx));
#[allow(clippy::map_identity)] // map is used to distribute &mut-ness to tuple elements
self.routes
.last_mut()
.map(|(rdef, val, ctx)| (rdef, val, ctx))
Expand Down Expand Up @@ -186,11 +187,11 @@ mod tests {
assert_eq!(path.get("file").unwrap(), "file");
assert_eq!(path.get("ext").unwrap(), "gz");

let mut path = Path::new("/vtest/ttt/index.html");
let mut path = Path::new("/v2/ttt/index.html");
let (h, info) = router.recognize_mut(&mut path).unwrap();
assert_eq!(*h, 14);
assert_eq!(info, ResourceId(4));
assert_eq!(path.get("val").unwrap(), "test");
assert_eq!(path.get("val").unwrap(), "2");
assert_eq!(path.get("val2").unwrap(), "ttt");

let mut path = Path::new("/v/blah-blah/index.html");
Expand Down
1 change: 0 additions & 1 deletion actix-web-actors/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@

#![deny(rust_2018_idioms, nonstandard_style)]
#![warn(future_incompatible)]
#![allow(clippy::uninlined_format_args)]
#![doc(html_logo_url = "https://actix.rs/img/logo.png")]
#![doc(html_favicon_url = "https://actix.rs/favicon.ico")]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
Expand Down
2 changes: 0 additions & 2 deletions actix-web/benches/server.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![allow(clippy::uninlined_format_args)]

use actix_web::{web, App, HttpResponse};
use awc::Client;
use criterion::{criterion_group, criterion_main, Criterion};
Expand Down
2 changes: 0 additions & 2 deletions actix-web/examples/macroless.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![allow(clippy::uninlined_format_args)]

use actix_web::{middleware, rt, web, App, HttpRequest, HttpServer};

async fn index(req: HttpRequest) -> &'static str {
Expand Down
2 changes: 0 additions & 2 deletions actix-web/examples/uds.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![allow(clippy::uninlined_format_args)]

use actix_web::{get, web, HttpRequest};
#[cfg(unix)]
use actix_web::{middleware, App, Error, HttpResponse, HttpServer};
Expand Down
1 change: 0 additions & 1 deletion actix-web/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@

#![deny(rust_2018_idioms, nonstandard_style)]
#![warn(future_incompatible)]
#![allow(clippy::uninlined_format_args)]
#![doc(html_logo_url = "https://actix.rs/img/logo.png")]
#![doc(html_favicon_url = "https://actix.rs/favicon.ico")]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
Expand Down
2 changes: 0 additions & 2 deletions actix-web/tests/test_httpserver.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![allow(clippy::uninlined_format_args)]

#[cfg(feature = "openssl")]
extern crate tls_openssl as openssl;

Expand Down
2 changes: 0 additions & 2 deletions awc/examples/client.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![allow(clippy::uninlined_format_args)]

use std::error::Error as StdError;

#[tokio::main]
Expand Down
3 changes: 1 addition & 2 deletions awc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,7 @@
#![allow(
clippy::type_complexity,
clippy::borrow_interior_mutable_const,
clippy::needless_doctest_main,
clippy::uninlined_format_args
clippy::needless_doctest_main
)]
#![doc(html_logo_url = "https://actix.rs/img/logo.png")]
#![doc(html_favicon_url = "https://actix.rs/favicon.ico")]
Expand Down
2 changes: 0 additions & 2 deletions awc/tests/test_client.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![allow(clippy::uninlined_format_args)]

use std::{
collections::HashMap,
convert::Infallible,
Expand Down

0 comments on commit 5e5e5d8

Please sign in to comment.