Skip to content

Commit 2ebfbb8

Browse files
committed
Add Clone derive for Context
Users can easily use it without manually clone it. Signed-off-by: bin <bin@hyper.sh>
1 parent eef2004 commit 2ebfbb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use crate::ttrpc::KeyValue;
77
use std::collections::HashMap;
88

9-
#[derive(Default, Debug)]
9+
#[derive(Clone, Default, Debug)]
1010
pub struct Context {
1111
pub metadata: HashMap<String, Vec<String>>,
1212
pub timeout_nano: i64,

0 commit comments

Comments
 (0)