Skip to content

Commit c4ea10d

Browse files
committed
clean up
1 parent be97199 commit c4ea10d

File tree

5 files changed

+9
-17
lines changed

5 files changed

+9
-17
lines changed

backend/src/connector/mod.rs

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ mod prelude {
33
context::{BodyExt, ContextWrapper, DropContextService, Has},
44
ClientError, Connector,
55
};
6-
pub use crate::{models::shared::XSpanIdString, prelude::*};
7-
pub use axum::headers::Authorization;
8-
pub use axum::headers::{authorization::Credentials, HeaderMapExt};
9-
pub use axum::http::{HeaderName, HeaderValue};
6+
pub use crate::{models::shared::XSpanIdString, prelude::*, services::auth::HttpClient};
7+
pub use axum::{
8+
headers::{authorization::Credentials, Authorization, HeaderMapExt},
9+
http::{HeaderName, HeaderValue},
10+
};
1011
pub use futures::{Stream, StreamExt};
11-
pub use hyper::body::Bytes;
12-
pub use hyper::{service::Service, Response, Uri};
12+
pub use hyper::{body::Bytes, service::Service, Response, Uri};
1313
pub use std::{
1414
str::FromStr,
1515
sync::Arc,
@@ -22,8 +22,6 @@ use client::Client;
2222
use context::ClientContext;
2323
use prelude::*;
2424

25-
use crate::services::auth::HttpClient;
26-
2725
pub mod api;
2826
pub mod client;
2927
pub mod context;

backend/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ pub mod prelude {
100100
pub use error_stack::{Context, Report, Result, ResultExt};
101101
pub use hyper::{client::HttpConnector, Body, Method, Request, StatusCode};
102102
pub use serde::{Deserialize, Serialize};
103-
pub use std::{collections::HashMap, hash::Hash, marker::PhantomData};
103+
pub use std::{collections::HashMap, hash::Hash, marker::PhantomData, str::FromStr};
104104
pub use thiserror::Error;
105105
pub use utoipa::{IntoParams, OpenApi, ToSchema};
106106
pub use uuid::Uuid;

backend/src/models/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@ pub mod shared;
44

55
pub mod prelude {
66
pub use crate::prelude::*;
7+
pub use hyper::Uri;
8+
pub use std::{net::SocketAddr, time::Duration};
79
}

backend/src/models/shared.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
use hyper::Uri;
2-
31
use super::prelude::*;
42
use std::result::Result;
5-
use std::str::FromStr;
6-
use std::{net::SocketAddr, time::Duration};
73

84
#[derive(ToSchema, Debug, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]
95
pub struct Hostname(

backend/src/router.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,9 @@ use crate::prelude::*;
22
use axum::body::HttpBody;
33
use axum::routing::on;
44
use axum::{handler::Handler, routing::MethodFilter, Router};
5-
use hyper::{Body, Method};
65
use std::convert::Infallible;
7-
use std::marker::PhantomData;
86
use std::ops::Deref;
9-
use thiserror::Error;
107
use utoipa::openapi::PathItemType;
11-
use utoipa::OpenApi;
128

139
#[derive(Clone, Debug, Error, PartialEq, Eq, PartialOrd, Ord)]
1410
pub enum RouteError {

0 commit comments

Comments
 (0)