diff options
Diffstat (limited to 'tool/src')
-rw-r--r-- | tool/src/commands/dump.rs | 4 | ||||
-rw-r--r-- | tool/src/commands/mod.rs | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tool/src/commands/dump.rs b/tool/src/commands/dump.rs index 480bef61..b8573dde 100644 --- a/tool/src/commands/dump.rs +++ b/tool/src/commands/dump.rs @@ -690,9 +690,9 @@ impl PacketDumper { for field in map.iter() { if field.name() == "body" { - hd.write_ascii(field.data())?; + hd.write_ascii(field.as_bytes())?; } else { - hd.write(field.data(), field.name())?; + hd.write(field.as_bytes(), field.name())?; } } diff --git a/tool/src/commands/mod.rs b/tool/src/commands/mod.rs index 37c6c6d6..09c5e25f 100644 --- a/tool/src/commands/mod.rs +++ b/tool/src/commands/mod.rs @@ -439,7 +439,7 @@ pub fn split(input: &mut dyn io::Read, prefix: &str) // Write all the bytes. for field in map.iter() { - sink.write_all(field.data())?; + sink.write_all(field.as_bytes())?; } } @@ -472,7 +472,7 @@ pub fn join(inputs: Option<clap::Values>, output: &mut dyn io::Write) // We (ab)use the mapping feature to create byte-accurate // copies. for field in pp.map().expect("must be mapped").iter() { - output.write_all(field.data())?; + output.write_all(field.as_bytes())?; } ppr = pp.next()?.1; |