summaryrefslogtreecommitdiff
path: root/src/formats/inhx.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/formats/inhx.rs')
-rw-r--r--src/formats/inhx.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/formats/inhx.rs b/src/formats/inhx.rs
index fc4791b..7aa0c5e 100644
--- a/src/formats/inhx.rs
+++ b/src/formats/inhx.rs
@@ -17,7 +17,7 @@ pub fn format_inhx(segments: &[Segment]) -> Result<Vec<u8>, FormatError> {
for record in records {
output.push_str(&record.to_string());
}
- return Ok(output.as_bytes().to_vec());
+ return Ok(output.into_bytes());
}
fn data_record(words: &[Tracked<Word>], address: usize) -> Result<InhxRecord, FormatError> {