Skip to content

Commit

Permalink
Fix no_std
Browse files Browse the repository at this point in the history
  • Loading branch information
tarcieri committed Aug 26, 2023
1 parent cfe8a99 commit 53dbdd0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion prost-types/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ use core::time;

use prost::alloc::format;
use prost::alloc::vec::Vec;
use prost::alloc::string::String;
use prost::{DecodeError, EncodeError, Message, Name};

pub use protobuf::*;
Expand Down Expand Up @@ -864,7 +865,7 @@ mod tests {

#[test]
fn check_any_serialization() {
let message = Timestamp::from(UNIX_EPOCH);
let message = Timestamp::date(2000, 01, 01).unwrap();
let any = Any::from_msg(&message).unwrap();
assert_eq!(
&any.type_url,
Expand Down

0 comments on commit 53dbdd0

Please sign in to comment.