You've already forked authentication-service
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:
committed by
Quentin Gliech
parent
65282fc9af
commit
0829ab7e27
@@ -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;
|
||||
|
||||
@@ -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")]
|
||||
|
||||
@@ -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::*,
|
||||
|
||||
Reference in New Issue
Block a user