Skip to content

Commit 5e094f3

Browse files
committed
Keep previous Any impl exposed
1 parent 22ed7a8 commit 5e094f3

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

prost-types/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ pub use protobuf::*;
4141

4242
#[cfg(feature = "any-v2")]
4343
pub use any_v2::ProstAny as Any;
44+
#[cfg(feature = "any-v2")]
45+
pub use protobuf::Any as AnyV1;
4446

4547
// The Protobuf `Duration` and `Timestamp` types can't delegate to the standard library equivalents
4648
// because the Protobuf versions are signed. To make them easier to work with, `From` conversions

tests/src/decode_error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ fn test_decode_error_invalid_string() {
136136

137137
#[test]
138138
fn test_decode_error_any() {
139-
use prost_types::{Any, Timestamp};
139+
use prost_types::{AnyV1 as Any, Timestamp};
140140

141141
let msg = Any {
142142
type_url: "non-existing-url".to_string(),

0 commit comments

Comments
 (0)