mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-07 00:00:15 +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
|
||||
|
||||
- None.
|
||||
- **added:** Implement `Default` for `Extension` ([#1043])
|
||||
|
||||
# 0.5.6 (15. May, 2022)
|
||||
|
||||
|
||||
@@ -69,7 +69,7 @@ use tower_service::Service;
|
||||
/// #[derive(Clone)]
|
||||
/// struct Foo(&'static str);
|
||||
/// ```
|
||||
#[derive(Debug, Clone, Copy)]
|
||||
#[derive(Debug, Clone, Copy, Default)]
|
||||
pub struct Extension<T>(pub T);
|
||||
|
||||
#[async_trait]
|
||||
|
||||
Reference in New Issue
Block a user