1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-11-25 11:01:14 +00:00

build(deps): bump taiki-e/install-action from 2.26.18 to 2.27.2 (#3294)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Rob Ede <robjtede@icloud.com>
This commit is contained in:
dependabot[bot] 2024-02-19 12:31:10 +00:00 committed by GitHub
parent 289f749e9f
commit 8c31d137aa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
43 changed files with 39 additions and 97 deletions

View file

@ -45,7 +45,7 @@ jobs:
toolchain: ${{ matrix.version.version }} toolchain: ${{ matrix.version.version }}
- name: Install cargo-hack and cargo-ci-cache-clean - name: Install cargo-hack and cargo-ci-cache-clean
uses: taiki-e/install-action@v2.26.18 uses: taiki-e/install-action@v2.27.2
with: with:
tool: cargo-hack,cargo-ci-cache-clean tool: cargo-hack,cargo-ci-cache-clean
@ -85,7 +85,7 @@ jobs:
uses: actions-rust-lang/setup-rust-toolchain@v1.8.0 uses: actions-rust-lang/setup-rust-toolchain@v1.8.0
- name: Install cargo-hack - name: Install cargo-hack
uses: taiki-e/install-action@v2.26.18 uses: taiki-e/install-action@v2.27.2
with: with:
tool: cargo-hack tool: cargo-hack
@ -106,7 +106,7 @@ jobs:
uses: actions-rust-lang/setup-rust-toolchain@v1.8.0 uses: actions-rust-lang/setup-rust-toolchain@v1.8.0
- name: Install nextest - name: Install nextest
uses: taiki-e/install-action@v2.26.18 uses: taiki-e/install-action@v2.27.2
with: with:
tool: nextest tool: nextest

View file

@ -50,7 +50,7 @@ jobs:
toolchain: ${{ matrix.version.version }} toolchain: ${{ matrix.version.version }}
- name: Install cargo-hack and cargo-ci-cache-clean - name: Install cargo-hack and cargo-ci-cache-clean
uses: taiki-e/install-action@v2.26.18 uses: taiki-e/install-action@v2.27.2
with: with:
tool: cargo-hack,cargo-ci-cache-clean tool: cargo-hack,cargo-ci-cache-clean

View file

@ -23,7 +23,7 @@ jobs:
components: llvm-tools-preview components: llvm-tools-preview
- name: Install cargo-llvm-cov - name: Install cargo-llvm-cov
uses: taiki-e/install-action@v2.26.18 uses: taiki-e/install-action@v2.27.2
with: with:
tool: cargo-llvm-cov tool: cargo-llvm-cov

View file

@ -82,7 +82,7 @@ jobs:
toolchain: nightly-2023-08-25 toolchain: nightly-2023-08-25
- name: Install cargo-public-api - name: Install cargo-public-api
uses: taiki-e/install-action@v2.26.18 uses: taiki-e/install-action@v2.27.2
with: with:
tool: cargo-public-api tool: cargo-public-api

View file

@ -75,7 +75,7 @@ mod tests {
dev::ServiceFactory, dev::ServiceFactory,
guard, guard,
http::{ http::{
header::{self, ContentDisposition, DispositionParam, DispositionType}, header::{self, ContentDisposition, DispositionParam},
Method, StatusCode, Method, StatusCode,
}, },
middleware::Compress, middleware::Compress,

View file

@ -531,7 +531,6 @@ where
mod tests { mod tests {
use actix_rt::pin; use actix_rt::pin;
use actix_utils::future::poll_fn; use actix_utils::future::poll_fn;
use bytes::{Bytes, BytesMut};
use futures_util::stream; use futures_util::stream;
use super::*; use super::*;

View file

@ -399,9 +399,7 @@ pub enum ContentTypeError {
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
use std::io; use http::Error as HttpError;
use http::{Error as HttpError, StatusCode};
use super::*; use super::*;

View file

@ -198,9 +198,6 @@ impl Encoder<Message<(Response<()>, BodySize)>> for Codec {
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
use bytes::BytesMut;
use http::Method;
use super::*; use super::*;
use crate::HttpMessage as _; use crate::HttpMessage as _;

View file

@ -563,15 +563,8 @@ impl Decoder for PayloadDecoder {
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
use bytes::{Bytes, BytesMut};
use http::{Method, Version};
use super::*; use super::*;
use crate::{ use crate::{header::SET_COOKIE, HttpMessage as _};
error::ParseError,
header::{HeaderName, SET_COOKIE},
HttpMessage as _,
};
impl PayloadType { impl PayloadType {
pub(crate) fn unwrap(self) -> PayloadDecoder { pub(crate) fn unwrap(self) -> PayloadDecoder {

View file

@ -221,7 +221,7 @@ pub fn handshake_response(req: &RequestHead) -> ResponseBuilder {
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
use super::*; use super::*;
use crate::{header, test::TestRequest, Method}; use crate::{header, test::TestRequest};
#[test] #[test]
fn test_handshake() { fn test_handshake() {

View file

@ -1,7 +1,4 @@
use std::{ use std::fmt;
convert::{From, Into},
fmt,
};
use base64::prelude::*; use base64::prelude::*;
use tracing::error; use tracing::error;

View file

@ -863,7 +863,7 @@ mod tests {
test::TestRequest, test::TestRequest,
FromRequest, FromRequest,
}; };
use bytes::{BufMut as _, Bytes}; use bytes::BufMut as _;
use futures_util::{future::lazy, StreamExt as _}; use futures_util::{future::lazy, StreamExt as _};
use tokio::sync::mpsc; use tokio::sync::mpsc;
use tokio_stream::wrappers::UnboundedReceiverStream; use tokio_stream::wrappers::UnboundedReceiverStream;

View file

@ -500,10 +500,10 @@ impl<'de> de::VariantAccess<'de> for UnitVariant {
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
use serde::{de, Deserialize}; use serde::Deserialize;
use super::*; use super::*;
use crate::{path::Path, router::Router, ResourceDef}; use crate::{router::Router, ResourceDef};
#[derive(Deserialize)] #[derive(Deserialize)]
struct MyStruct { struct MyStruct {

View file

@ -248,13 +248,11 @@ where
mod tests { mod tests {
use std::time::Duration; use std::time::Duration;
use actix::Actor;
use actix_web::{ use actix_web::{
http::StatusCode, http::StatusCode,
test::{call_service, init_service, read_body, TestRequest}, test::{call_service, init_service, read_body, TestRequest},
web, App, HttpResponse, web, App, HttpResponse,
}; };
use bytes::Bytes;
use super::*; use super::*;

View file

@ -817,10 +817,7 @@ where
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
use actix_web::{ use actix_web::test::TestRequest;
http::{header, Method},
test::TestRequest,
};
use super::*; use super::*;

View file

@ -471,7 +471,6 @@ mod tests {
Method, StatusCode, Method, StatusCode,
}, },
middleware::DefaultHeaders, middleware::DefaultHeaders,
service::ServiceRequest,
test::{call_service, init_service, read_body, try_init_service, TestRequest}, test::{call_service, init_service, read_body, try_init_service, TestRequest},
web, HttpRequest, HttpResponse, web, HttpRequest, HttpResponse,
}; };

View file

@ -380,7 +380,7 @@ impl Guard for HeaderGuard {
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
use actix_http::{header, Method}; use actix_http::Method;
use super::*; use super::*;
use crate::test::TestRequest; use crate::test::TestRequest;

View file

@ -126,7 +126,7 @@ mod tests {
use std::fmt; use std::fmt;
use super::*; use super::*;
use crate::{http::header::Header, test::TestRequest, HttpRequest}; use crate::{test::TestRequest, HttpRequest};
fn req_from_raw_headers<H: Header, I: IntoIterator<Item = V>, V: AsRef<[u8]>>( fn req_from_raw_headers<H: Header, I: IntoIterator<Item = V>, V: AsRef<[u8]>>(
header_lines: I, header_lines: I,

View file

@ -135,7 +135,7 @@ mod tests {
use super::*; use super::*;
use crate::{ use crate::{
body::BoxBody, body::BoxBody,
dev::{ServiceRequest, ServiceResponse}, dev::ServiceRequest,
error::Result, error::Result,
http::{ http::{
header::{HeaderValue, CONTENT_TYPE}, header::{HeaderValue, CONTENT_TYPE},

View file

@ -190,8 +190,6 @@ mod tests {
use super::*; use super::*;
use crate::{ use crate::{
dev::ServiceRequest,
http::header::CONTENT_TYPE,
test::{self, TestRequest}, test::{self, TestRequest},
HttpResponse, HttpResponse,
}; };

View file

@ -407,10 +407,7 @@ mod tests {
use super::*; use super::*;
use crate::{ use crate::{
body, body,
http::{ http::header::{HeaderValue, CONTENT_TYPE},
header::{HeaderValue, CONTENT_TYPE},
StatusCode,
},
test::{self, TestRequest}, test::{self, TestRequest},
}; };

View file

@ -716,7 +716,7 @@ impl<'a> fmt::Display for FormatDisplay<'a> {
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
use actix_service::{IntoService, Service, Transform}; use actix_service::IntoService;
use actix_utils::future::ok; use actix_utils::future::ok;
use super::*; use super::*;

View file

@ -205,7 +205,6 @@ mod tests {
use super::*; use super::*;
use crate::{ use crate::{
dev::ServiceRequest,
guard::fn_guard, guard::fn_guard,
test::{call_service, init_service, TestRequest}, test::{call_service, init_service, TestRequest},
web, App, HttpResponse, web, App, HttpResponse,

View file

@ -182,7 +182,7 @@ impl Responder for Redirect {
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
use super::*; use super::*;
use crate::{dev::Service, http::StatusCode, test, App}; use crate::{dev::Service, test, App};
#[actix_rt::test] #[actix_rt::test]
async fn absolute_redirects() { async fn absolute_redirects() {

View file

@ -523,7 +523,7 @@ mod tests {
use super::*; use super::*;
use crate::{ use crate::{
dev::{ResourceDef, ResourceMap, Service}, dev::{ResourceDef, Service},
http::{header, StatusCode}, http::{header, StatusCode},
test::{self, call_service, init_service, read_body, TestRequest}, test::{self, call_service, init_service, read_body, TestRequest},
web, App, HttpResponse, web, App, HttpResponse,

View file

@ -540,20 +540,14 @@ mod tests {
use std::time::Duration; use std::time::Duration;
use actix_rt::time::sleep; use actix_rt::time::sleep;
use actix_service::Service;
use actix_utils::future::ok; use actix_utils::future::ok;
use super::*; use super::*;
use crate::{ use crate::{
guard, http::{header::HeaderValue, Method, StatusCode},
http::{
header::{self, HeaderValue},
Method, StatusCode,
},
middleware::DefaultHeaders, middleware::DefaultHeaders,
service::{ServiceRequest, ServiceResponse},
test::{call_service, init_service, TestRequest}, test::{call_service, init_service, TestRequest},
web, App, Error, HttpMessage, HttpResponse, App, HttpMessage,
}; };
#[test] #[test]

View file

@ -408,10 +408,7 @@ mod tests {
use super::*; use super::*;
use crate::{ use crate::{
body, body,
http::{ http::header::{HeaderValue, CONTENT_TYPE},
header::{self, HeaderValue, CONTENT_TYPE},
StatusCode,
},
test::assert_body_eq, test::assert_body_eq,
}; };

View file

@ -175,10 +175,7 @@ mod tests {
use super::*; use super::*;
use crate::{ use crate::{
http::{ http::header::{HeaderValue, CONTENT_TYPE},
header::{HeaderValue, CONTENT_TYPE},
StatusCode,
},
test::TestRequest, test::TestRequest,
}; };

View file

@ -188,15 +188,11 @@ impl_into_string_responder!(Cow<'_, str>);
pub(crate) mod tests { pub(crate) mod tests {
use actix_http::body::to_bytes; use actix_http::body::to_bytes;
use actix_service::Service; use actix_service::Service;
use bytes::{Bytes, BytesMut};
use super::*; use super::*;
use crate::{ use crate::{
error, error,
http::{ http::header::{HeaderValue, CONTENT_TYPE},
header::{HeaderValue, CONTENT_TYPE},
StatusCode,
},
test::{assert_body_eq, init_service, TestRequest}, test::{assert_body_eq, init_service, TestRequest},
web, App, web, App,
}; };

View file

@ -399,7 +399,7 @@ mod tests {
use static_assertions::assert_impl_all; use static_assertions::assert_impl_all;
use super::*; use super::*;
use crate::http::header::{HeaderValue, COOKIE}; use crate::http::header::COOKIE;
assert_impl_all!(HttpResponse: Responder); assert_impl_all!(HttpResponse: Responder);
assert_impl_all!(HttpResponse<String>: Responder); assert_impl_all!(HttpResponse<String>: Responder);

View file

@ -547,7 +547,6 @@ impl ServiceFactory<ServiceRequest> for ScopeEndpoint {
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
use actix_service::Service;
use actix_utils::future::ok; use actix_utils::future::ok;
use bytes::Bytes; use bytes::Bytes;
@ -559,7 +558,6 @@ mod tests {
Method, StatusCode, Method, StatusCode,
}, },
middleware::DefaultHeaders, middleware::DefaultHeaders,
service::{ServiceRequest, ServiceResponse},
test::{assert_body_eq, call_service, init_service, read_body, TestRequest}, test::{assert_body_eq, call_service, init_service, read_body, TestRequest},
web, App, HttpMessage, HttpRequest, HttpResponse, web, App, HttpMessage, HttpRequest, HttpResponse,
}; };

View file

@ -700,7 +700,7 @@ mod tests {
use crate::{ use crate::{
guard, http, guard, http,
test::{self, init_service, TestRequest}, test::{self, init_service, TestRequest},
web, App, HttpResponse, web, App,
}; };
#[actix_rt::test] #[actix_rt::test]

View file

@ -350,7 +350,7 @@ mod tests {
use std::time::SystemTime; use std::time::SystemTime;
use super::*; use super::*;
use crate::{http::header, test::init_service, web, App, Error, HttpResponse, Responder}; use crate::{http::header, test::init_service, web, App, Error, Responder};
#[actix_rt::test] #[actix_rt::test]
async fn test_basics() { async fn test_basics() {

View file

@ -287,10 +287,7 @@ mod tests {
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
use super::*; use super::*;
use crate::{ use crate::test::TestRequest;
test::TestRequest,
web::{Form, Json},
};
#[derive(Debug, Clone, Serialize, Deserialize)] #[derive(Debug, Clone, Serialize, Deserialize)]
struct TestForm { struct TestForm {

View file

@ -418,7 +418,7 @@ mod tests {
use super::*; use super::*;
use crate::{ use crate::{
http::{ http::{
header::{HeaderValue, CONTENT_LENGTH, CONTENT_TYPE}, header::{HeaderValue, CONTENT_TYPE},
StatusCode, StatusCode,
}, },
test::{assert_body_eq, TestRequest}, test::{assert_body_eq, TestRequest},

View file

@ -440,13 +440,11 @@ impl Future for HttpMessageBody {
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
use bytes::Bytes;
use super::*; use super::*;
use crate::{ use crate::{
http::{header, StatusCode}, http::StatusCode,
test::{call_service, init_service, read_body, TestRequest}, test::{call_service, init_service, read_body, TestRequest},
web, App, Responder, App, Responder,
}; };
#[actix_rt::test] #[actix_rt::test]

View file

@ -380,8 +380,6 @@ mod test {
use std::{ use std::{
future::Future, future::Future,
net, net,
pin::Pin,
task::{Context, Poll},
time::{Duration, Instant}, time::{Duration, Instant},
}; };

View file

@ -935,7 +935,6 @@ mod resolver {
use std::{cell::RefCell, net::SocketAddr}; use std::{cell::RefCell, net::SocketAddr};
use actix_tls::connect::Resolve; use actix_tls::connect::Resolve;
use futures_core::future::LocalBoxFuture;
use trust_dns_resolver::{ use trust_dns_resolver::{
config::{ResolverConfig, ResolverOpts}, config::{ResolverConfig, ResolverOpts},
system_conf::read_system_conf, system_conf::read_system_conf,

View file

@ -374,12 +374,11 @@ impl<Io: ConnectionIo> Acquired<Io> {
#[cfg(test)] #[cfg(test)]
mod test { mod test {
use std::{cell::Cell, io}; use std::cell::Cell;
use http::Uri; use http::Uri;
use super::*; use super::*;
use crate::client::connection::ConnectionType;
/// A stream type that always returns pending on async read. /// A stream type that always returns pending on async read.
/// ///

View file

@ -303,10 +303,7 @@ mod tests {
use actix_web::{web, App, Error, HttpRequest, HttpResponse}; use actix_web::{web, App, Error, HttpRequest, HttpResponse};
use super::*; use super::*;
use crate::{ use crate::{http::header::HeaderValue, ClientBuilder};
http::{header::HeaderValue, StatusCode},
ClientBuilder,
};
#[actix_rt::test] #[actix_rt::test]
async fn basic_redirect() { async fn basic_redirect() {

View file

@ -118,7 +118,7 @@ mod tests {
use static_assertions::assert_impl_all; use static_assertions::assert_impl_all;
use super::*; use super::*;
use crate::{http::header, test::TestResponse}; use crate::test::TestResponse;
assert_impl_all!(JsonBody<BoxedPayloadStream, String>: Unpin); assert_impl_all!(JsonBody<BoxedPayloadStream, String>: Unpin);

View file

@ -110,7 +110,7 @@ mod tests {
use static_assertions::assert_impl_all; use static_assertions::assert_impl_all;
use super::*; use super::*;
use crate::{http::header, test::TestResponse}; use crate::test::TestResponse;
assert_impl_all!(ResponseBody<()>: Unpin); assert_impl_all!(ResponseBody<()>: Unpin);

View file

@ -103,7 +103,7 @@ mod tests {
use actix_http::header::HttpDate; use actix_http::header::HttpDate;
use super::*; use super::*;
use crate::{cookie, http::header}; use crate::http::header;
#[test] #[test]
fn test_basics() { fn test_basics() {