File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,8 @@ pub use protobuf::*;
41
41
42
42
#[ cfg( feature = "any-v2" ) ]
43
43
pub use any_v2:: ProstAny as Any ;
44
+ #[ cfg( feature = "any-v2" ) ]
45
+ pub use protobuf:: Any as AnyV1 ;
44
46
45
47
// The Protobuf `Duration` and `Timestamp` types can't delegate to the standard library equivalents
46
48
// because the Protobuf versions are signed. To make them easier to work with, `From` conversions
Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ fn test_decode_error_invalid_string() {
136
136
137
137
#[ test]
138
138
fn test_decode_error_any ( ) {
139
- use prost_types:: { Any , Timestamp } ;
139
+ use prost_types:: { AnyV1 as Any , Timestamp } ;
140
140
141
141
let msg = Any {
142
142
type_url : "non-existing-url" . to_string ( ) ,
You can’t perform that action at this time.
0 commit comments