Delete Decoder::read_struct
This commit is contained in:
parent
a421b631ba
commit
c021ba48a7
5 changed files with 74 additions and 98 deletions
|
@ -210,14 +210,6 @@ pub trait Decoder {
|
|||
f(self, disr)
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn read_struct<T, F>(&mut self, f: F) -> T
|
||||
where
|
||||
F: FnOnce(&mut Self) -> T,
|
||||
{
|
||||
f(self)
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn read_struct_field<T, F>(&mut self, _f_name: &str, f: F) -> T
|
||||
where
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue