Skip to content

Commit 8ead8e2

Browse files
committed
remove axum core import
1 parent cb42003 commit 8ead8e2

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ maintenance = { status = "actively-developed" }
1717

1818
[dependencies]
1919
axum = "0.6.20"
20-
axum-core = "0.3.4"
2120
base64 = "0.21.5"
2221
rand = "0.8.5"
2322
thiserror = "1.0.40"

src/lib.rs

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -245,8 +245,10 @@ use std::{
245245
task::{Context, Poll},
246246
};
247247

248-
use axum::http::{self, HeaderValue, Request, StatusCode};
249-
use axum_core::response::{IntoResponse, Response};
248+
use axum::{
249+
http::{self, HeaderValue, Request, StatusCode},
250+
response::{IntoResponse, Response},
251+
};
250252
use tower_sessions::Session;
251253
use base64::prelude::*;
252254
use rand::RngCore;
@@ -545,8 +547,15 @@ where
545547
mod tests {
546548
use std::convert::Infallible;
547549

548-
use axum::{body::Body, routing::get, Router, error_handling::HandleErrorLayer};
549-
use axum_core::{response::{IntoResponse, Response}, BoxError};
550+
use axum::{
551+
body::Body,
552+
routing::get,
553+
Router,
554+
error_handling::HandleErrorLayer,
555+
response::{IntoResponse, Response},
556+
BoxError,
557+
};
558+
550559
use tower_sessions::{MemoryStore, SessionManagerLayer};
551560
use http::{
552561
header::{COOKIE, SET_COOKIE},

0 commit comments

Comments
 (0)