Fix tabs in comments
This commit is contained in:
parent
bf988bec2f
commit
8c4d2dbd93
2 changed files with 40 additions and 40 deletions
|
@ -164,13 +164,13 @@ impl<'a> Term<'a> {
|
|||
// ---- encoding function ----
|
||||
|
||||
/// Generate the nettext representation of a term
|
||||
pub fn encode<'a>(t: Term<'a>) -> Result<Vec<u8>, Error> {
|
||||
pub fn encode(t: Term<'_>) -> Result<Vec<u8>, Error> {
|
||||
let mut buf = Vec::with_capacity(128);
|
||||
encode_aux(&mut buf, t.0, 0)?;
|
||||
Ok(buf)
|
||||
}
|
||||
|
||||
fn encode_aux<'a>(buf: &mut Vec<u8>, term: T<'a>, indent: usize) -> Result<(), Error> {
|
||||
fn encode_aux(buf: &mut Vec<u8>, term: T<'_>, indent: usize) -> Result<(), Error> {
|
||||
match term {
|
||||
T::Str(s) => buf.extend_from_slice(s),
|
||||
T::OwnedStr(s) => buf.extend_from_slice(&s),
|
||||
|
|
Loading…
Reference in a new issue