From f25bc47f5c6b7e52304b1e9c9adb4310f2e77ee7 Mon Sep 17 00:00:00 2001 From: Ben Bridle Date: Tue, 18 Mar 2025 13:24:02 +1300 Subject: Tidy cody - Rename tokens field on SyntacticMacroDefinition to body - Rename push_err! macro to err! - Create macros for character-matching logic in syntactic parsing - Replace .as_bytes().to_vec() pattern with .into_bytes() --- src/formats/inhx.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/formats/inhx.rs') 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, 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], address: usize) -> Result { -- cgit v1.2.3-70-g09d2