From 792f2d5f5d78723356aae12c48eb411ae1247804 Mon Sep 17 00:00:00 2001 From: charles Date: Mon, 11 May 2026 17:43:25 -0700 Subject: [PATCH] Ensure we use roto_runtime rather than crate for error types --- codegen/src/generator.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/codegen/src/generator.rs b/codegen/src/generator.rs index aa4db23..336530d 100644 --- a/codegen/src/generator.rs +++ b/codegen/src/generator.rs @@ -51,17 +51,17 @@ fn map_type_to_rust_accessor(field_type: i32, label: i32, is_map: bool) -> (Stri match field_type { 9 => ( "&'a str".to_string(), - "str::from_utf8(bytes).map_err(|_| crate::RotoError::WireFormatViolation)".to_string(), + "str::from_utf8(bytes).map_err(|_| roto_runtime::RotoError::WireFormatViolation)".to_string(), "\"\"".to_string(), ), // TYPE_STRING 1 => ( "f64".to_string(), - "Ok(f64::from_le_bytes(bytes.try_into().map_err(|_| crate::RotoError::WireFormatViolation)?))".to_string(), + "Ok(f64::from_le_bytes(bytes.try_into().map_err(|_| roto_runtime::RotoError::WireFormatViolation)?))".to_string(), "0.0".to_string(), ), // TYPE_DOUBLE 2 => ( "f32".to_string(), - "Ok(f32::from_le_bytes(bytes.try_into().map_err(|_| crate::RotoError::WireFormatViolation)?))".to_string(), + "Ok(f32::from_le_bytes(bytes.try_into().map_err(|_| roto_runtime::RotoError::WireFormatViolation)?))".to_string(), "0.0".to_string(), ), // TYPE_FLOAT 3 | 5 | 15 | 17 => (