File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -61,15 +61,15 @@ enum EngFixArgs {
61
61
Prefix ,
62
62
}
63
63
64
- pub trait Formatter : Debug {
64
+ pub trait Formatter : Debug + Send + Sync {
65
65
fn format ( & self , val : & Value ) -> Result < String > ;
66
66
67
67
fn interval ( & self ) -> Option < Duration > {
68
68
None
69
69
}
70
70
}
71
71
72
- pub fn new_formatter ( name : & str , args : & [ String ] ) -> Result < Box < dyn Formatter + Send + Sync > > {
72
+ pub fn new_formatter ( name : & str , args : & [ String ] ) -> Result < Box < dyn Formatter > > {
73
73
match name {
74
74
"str" => {
75
75
let min_width: usize = match args. get ( StrArgs :: MinWidth as usize ) {
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ pub enum Token {
21
21
Recursive ( FormatTemplate ) ,
22
22
Var {
23
23
name : String ,
24
- formatter : Option < Box < dyn Formatter + Send + Sync > > ,
24
+ formatter : Option < Box < dyn Formatter > > ,
25
25
} ,
26
26
}
27
27
You can’t perform that action at this time.
0 commit comments