Skip to content

Commit daf49a7

Browse files
committed
fix: feature gate Router::into_axum_with_handle
1 parent c43875d commit daf49a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/router.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,10 +346,10 @@ where
346346
///
347347
/// This method allows users to specify a runtime handle for the router to
348348
/// use. This runtime is accessible to all handlers invoked by the router.
349-
/// Handlers.
350349
///
351350
/// Tasks spawned by the router will be spawned on the provided runtime,
352351
/// and automatically cancelled when the returned `axum::Router` is dropped.
352+
#[cfg(feature = "axum")]
353353
pub fn into_axum_with_handle(
354354
self,
355355
path: &str,

0 commit comments

Comments
 (0)