Remove emit_unit
It doesn't do anything for all encoders
This commit is contained in:
parent
22e8d5f80e
commit
7381ea019c
8 changed files with 12 additions and 33 deletions
|
@ -2473,8 +2473,8 @@ rustc_index::newtype_index! {
|
|||
}
|
||||
|
||||
impl<S: Encoder> rustc_serialize::Encodable<S> for AttrId {
|
||||
fn encode(&self, s: &mut S) -> Result<(), S::Error> {
|
||||
s.emit_unit()
|
||||
fn encode(&self, _s: &mut S) -> Result<(), S::Error> {
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue