mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-28 00:00:20 +02:00
Implement Default for Extension (#1043)
This commit is contained in:
+1
-1
@@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
# Unreleased
|
# Unreleased
|
||||||
|
|
||||||
- None.
|
- **added:** Implement `Default` for `Extension` ([#1043])
|
||||||
|
|
||||||
# 0.5.6 (15. May, 2022)
|
# 0.5.6 (15. May, 2022)
|
||||||
|
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ use tower_service::Service;
|
|||||||
/// #[derive(Clone)]
|
/// #[derive(Clone)]
|
||||||
/// struct Foo(&'static str);
|
/// struct Foo(&'static str);
|
||||||
/// ```
|
/// ```
|
||||||
#[derive(Debug, Clone, Copy)]
|
#[derive(Debug, Clone, Copy, Default)]
|
||||||
pub struct Extension<T>(pub T);
|
pub struct Extension<T>(pub T);
|
||||||
|
|
||||||
#[async_trait]
|
#[async_trait]
|
||||||
|
|||||||
Reference in New Issue
Block a user