fix test needing serde1 feature

This commit is contained in:
OMGeeky
2024-01-19 22:45:53 +01:00
parent d4f579542d
commit e9c86ce157

View File

@@ -1,14 +1,17 @@
#![no_implicit_prelude]
extern crate tarpc as some_random_other_name;
#[::tarpc::derive_serde]
#[derive(Debug, PartialEq, Eq)]
pub enum TestData {
Black,
White,
#[cfg(feature = "serde1")]
mod serde1_feature {
#[::tarpc::derive_serde]
#[derive(Debug, PartialEq, Eq)]
pub enum TestData {
Black,
White,
}
}
#[::tarpc::service]
pub trait ColorProtocol {
async fn get_opposite_color(color: u8) -> u8;
}
}