1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-11-23 11:02:35 +03:00

Fix imports used by feature-gated code

This commit is contained in:
Kévin Commaille
2022-10-17 12:18:45 +02:00
committed by Quentin Gliech
parent 65282fc9af
commit 0829ab7e27
3 changed files with 7 additions and 3 deletions

View File

@@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#[cfg(feature = "axum")]
use std::borrow::Cow;
use http::Request;

View File

@@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#[cfg(feature = "axum")]
use std::borrow::Cow;
#[cfg(feature = "axum")]

View File

@@ -153,9 +153,11 @@ impl TraceDnsLayer {
}
}
use self::make_metrics_labels::{
DefaultMakeMetricsLabels, MetricsLabelsFromAxumRequest, MetricsLabelsFromHttpRequest,
};
#[cfg(feature = "client")]
use self::make_metrics_labels::DefaultMakeMetricsLabels;
#[cfg(feature = "axum")]
use self::make_metrics_labels::MetricsLabelsFromAxumRequest;
use self::make_metrics_labels::MetricsLabelsFromHttpRequest;
pub use self::{
extract_context::*, inject_context::*, layer::*, make_span_builder::*, on_error::*,
on_response::*, service::*,