Merge pull request #17 from imbolc/axum-warngins

Remove axum warnings
This commit is contained in:
YuKun Liu authored and GitHub committed 2022-03-21 22:35:23 +08:00
commit 8b93ff87cb
1 file changed
+2 -2
+2 -2
View File
@@ -3,7 +3,7 @@ use axum::{
http::StatusCode,
response::IntoResponse,
routing::{get, get_service},
AddExtensionLayer, Router,
Router,
};
use notify::{RecommendedWatcher, Watcher};
@@ -88,7 +88,7 @@ pub async fn startup(config: CrateConfig) -> Result<()> {
},
),
)
.layer(AddExtensionLayer::new(ws_reload_state))
.layer(Extension(ws_reload_state))
.into_make_service(),
)
.await?;