Split up librqbit http_api and tracing_subscriber into separate features (#188)
* fix lints that were under features * Split up some features and fix desktop * fix github script * fix github script * fix github script * try caching check-desktop
This commit is contained in:
parent
33554159bf
commit
37ee8b70ba
12 changed files with 65 additions and 36 deletions
|
|
@ -1,3 +1,4 @@
|
|||
#[cfg(feature = "http-api")]
|
||||
use axum::response::{IntoResponse, Response};
|
||||
use http::StatusCode;
|
||||
use serde::{Serialize, Serializer};
|
||||
|
|
@ -147,6 +148,7 @@ impl std::fmt::Display for ApiError {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "http-api")]
|
||||
impl IntoResponse for ApiError {
|
||||
fn into_response(self) -> Response {
|
||||
let mut response = axum::Json(&self).into_response();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue