1 2 3 4 5 6 7 8 9 10
#![allow(renamed_and_removed_lints, clippy::all, clippy::pedantic)] // Include generated code from proto files include!(concat!(env!("OUT_DIR"), "/proto/mod.rs")); use failure::Error; pub trait ToProto<T> { fn to_proto(&self) -> Result<T, Error>; }