summaryrefslogtreecommitdiff
path: root/src/formats/debug.rs
diff options
context:
space:
mode:
authorBen Bridle <ben@derelict.engineering>2025-03-18 13:24:02 +1300
committerBen Bridle <ben@derelict.engineering>2025-03-18 13:24:20 +1300
commitf25bc47f5c6b7e52304b1e9c9adb4310f2e77ee7 (patch)
tree5ecda1e2620ded0bfea03facf8a467b246dc03d4 /src/formats/debug.rs
parentdddc94424b124740dd8db8afb5abddc65a01b344 (diff)
downloadtorque-asm-f25bc47f5c6b7e52304b1e9c9adb4310f2e77ee7.zip
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()
Diffstat (limited to 'src/formats/debug.rs')
-rw-r--r--src/formats/debug.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/formats/debug.rs b/src/formats/debug.rs
index 23fd34f..c264077 100644
--- a/src/formats/debug.rs
+++ b/src/formats/debug.rs
@@ -14,5 +14,5 @@ pub fn format_debug(segments: &[Segment]) -> Result<Vec<u8>, FormatError> {
output.push_str(&format!(" {string:>w$}\n"));
}
}
- return Ok(output.as_bytes().to_vec());
+ return Ok(output.into_bytes());
}