File tree 3 files changed +7
-7
lines changed 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -35,14 +35,14 @@ mod write {
35
35
/// Output
36
36
impl Identity {
37
37
/// Serialize this instance to `out` in the git serialization format for signatures (but without timestamp).
38
- pub fn write_to ( & self , out : impl std:: io:: Write ) -> std:: io:: Result < ( ) > {
38
+ pub fn write_to ( & self , out : & mut dyn std:: io:: Write ) -> std:: io:: Result < ( ) > {
39
39
self . to_ref ( ) . write_to ( out)
40
40
}
41
41
}
42
42
43
43
impl < ' a > IdentityRef < ' a > {
44
44
/// Serialize this instance to `out` in the git serialization format for signatures (but without timestamp).
45
- pub fn write_to ( & self , mut out : impl std:: io:: Write ) -> std:: io:: Result < ( ) > {
45
+ pub fn write_to ( & self , out : & mut dyn std:: io:: Write ) -> std:: io:: Result < ( ) > {
46
46
out. write_all ( validated_token ( self . name ) ?) ?;
47
47
out. write_all ( b" " ) ?;
48
48
out. write_all ( b"<" ) ?;
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ pub(crate) mod write {
95
95
/// Output
96
96
impl Signature {
97
97
/// Serialize this instance to `out` in the git serialization format for actors.
98
- pub fn write_to ( & self , out : impl std:: io:: Write ) -> std:: io:: Result < ( ) > {
98
+ pub fn write_to ( & self , out : & mut dyn std:: io:: Write ) -> std:: io:: Result < ( ) > {
99
99
self . to_ref ( ) . write_to ( out)
100
100
}
101
101
/// Computes the number of bytes necessary to serialize this signature
@@ -106,7 +106,7 @@ pub(crate) mod write {
106
106
107
107
impl < ' a > SignatureRef < ' a > {
108
108
/// Serialize this instance to `out` in the git serialization format for actors.
109
- pub fn write_to ( & self , mut out : impl std:: io:: Write ) -> std:: io:: Result < ( ) > {
109
+ pub fn write_to ( & self , out : & mut dyn std:: io:: Write ) -> std:: io:: Result < ( ) > {
110
110
out. write_all ( validated_token ( self . name ) ?) ?;
111
111
out. write_all ( b" " ) ?;
112
112
out. write_all ( b"<" ) ?;
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ mod write_to {
11
11
time : default_time ( ) ,
12
12
} ;
13
13
assert_eq ! (
14
- format!( "{:?}" , signature. write_to( Vec :: new( ) ) ) ,
14
+ format!( "{:?}" , signature. write_to( & mut Vec :: new( ) ) ) ,
15
15
"Err(Custom { kind: Other, error: IllegalCharacter })"
16
16
) ;
17
17
}
@@ -24,7 +24,7 @@ mod write_to {
24
24
time : default_time ( ) ,
25
25
} ;
26
26
assert_eq ! (
27
- format!( "{:?}" , signature. write_to( Vec :: new( ) ) ) ,
27
+ format!( "{:?}" , signature. write_to( & mut Vec :: new( ) ) ) ,
28
28
"Err(Custom { kind: Other, error: IllegalCharacter })"
29
29
) ;
30
30
}
@@ -37,7 +37,7 @@ mod write_to {
37
37
time : default_time ( ) ,
38
38
} ;
39
39
assert_eq ! (
40
- format!( "{:?}" , signature. write_to( Vec :: new( ) ) ) ,
40
+ format!( "{:?}" , signature. write_to( & mut Vec :: new( ) ) ) ,
41
41
"Err(Custom { kind: Other, error: IllegalCharacter })"
42
42
) ;
43
43
}
You can’t perform that action at this time.
0 commit comments