mirror of
https://github.com/tokio-rs/axum.git
synced 2026-09-03 00:00:07 +02:00
Add SpaRouter (#904)
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
#![allow(clippy::blacklisted_name)]
|
||||
|
||||
use crate::{body::HttpBody, BoxError};
|
||||
|
||||
mod test_client;
|
||||
pub(crate) use self::test_client::*;
|
||||
|
||||
pub(crate) fn assert_send<T: Send>() {}
|
||||
pub(crate) fn assert_sync<T: Sync>() {}
|
||||
pub(crate) fn assert_unpin<T: Unpin>() {}
|
||||
|
||||
pub(crate) struct NotSendSync(*const ());
|
||||
@@ -1,7 +1,4 @@
|
||||
#![allow(clippy::blacklisted_name)]
|
||||
|
||||
use crate::body::HttpBody;
|
||||
use crate::BoxError;
|
||||
use super::{BoxError, HttpBody};
|
||||
use bytes::Bytes;
|
||||
use http::{
|
||||
header::{HeaderName, HeaderValue},
|
||||
@@ -15,12 +12,6 @@ use std::{
|
||||
use tower::make::Shared;
|
||||
use tower_service::Service;
|
||||
|
||||
pub(crate) fn assert_send<T: Send>() {}
|
||||
pub(crate) fn assert_sync<T: Sync>() {}
|
||||
pub(crate) fn assert_unpin<T: Unpin>() {}
|
||||
|
||||
pub(crate) struct NotSendSync(*const ());
|
||||
|
||||
pub(crate) struct TestClient {
|
||||
client: reqwest::Client,
|
||||
addr: SocketAddr,
|
||||
Reference in New Issue
Block a user