blob: e61e2e8cf4dbd1b3d7c502cbe4e082a3e26755eb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
//! Dummy implementations that we emit along with an error.
use proc_macro2::Ident;
use proc_macro_error::append_dummy;
use quote::quote;
pub fn ini_parse(name: &Ident) {
append_dummy(quote! {
impl #name {
pub fn parse_ini<'a>(i: &'a ::ini::Ini) -> ::std::Result<Self, ::ini::Error> {
unimplemented!()
}
}
});
}
pub fn ini_dump(name: &Ident) {
append_dummy(quote! {
impl #name {
pub fn dump_ini<'b>(&self, to: &'b dyn ::std::io::Write) -> ::std::io::Result<()> {
unimplemented!()
}
}
});
}
|