@@ -108,7 +108,7 @@ impl HelperDef for PyHelperDef {
108108 Ok ( json) => json,
109109 Err ( e) => {
110110 let desc = format ! ( "Failed to serialize params: {}" , e) ;
111- return Err ( RenderError :: from ( RenderErrorReason :: Other ( desc. into ( ) ) ) ) ;
111+ return Err ( RenderError :: from ( RenderErrorReason :: Other ( desc) ) ) ;
112112 }
113113 } ;
114114
@@ -122,7 +122,7 @@ impl HelperDef for PyHelperDef {
122122 Ok ( json) => json,
123123 Err ( e) => {
124124 let desc = format ! ( "Failed to serialize hash: {}" , e) ;
125- return Err ( RenderError :: from ( RenderErrorReason :: Other ( desc. into ( ) ) ) ) ;
125+ return Err ( RenderError :: from ( RenderErrorReason :: Other ( desc) ) ) ;
126126 }
127127 } ;
128128
@@ -131,7 +131,7 @@ impl HelperDef for PyHelperDef {
131131 Ok ( json) => json,
132132 Err ( e) => {
133133 let desc = format ! ( "Failed to serialize context: {}" , e) ;
134- return Err ( RenderError :: from ( RenderErrorReason :: Other ( desc. into ( ) ) ) ) ;
134+ return Err ( RenderError :: from ( RenderErrorReason :: Other ( desc) ) ) ;
135135 }
136136 } ;
137137
@@ -144,15 +144,15 @@ impl HelperDef for PyHelperDef {
144144 Ok ( s) => s,
145145 Err ( e) => {
146146 let desc = format ! ( "Failed to extract result: {}" , e) ;
147- return Err ( RenderError :: from ( RenderErrorReason :: Other ( desc. into ( ) ) ) ) ;
147+ return Err ( RenderError :: from ( RenderErrorReason :: Other ( desc) ) ) ;
148148 }
149149 } ;
150150 out. write ( & result_str) ?;
151151 Ok ( ( ) )
152152 }
153153 Err ( e) => {
154154 let desc = format ! ( "Helper execution failed: {}" , e) ;
155- Err ( RenderError :: from ( RenderErrorReason :: Other ( desc. into ( ) ) ) )
155+ Err ( RenderError :: from ( RenderErrorReason :: Other ( desc) ) )
156156 }
157157 }
158158 } )
@@ -613,8 +613,9 @@ impl HelperDef for UnlessEqualsHelper {
613613///
614614/// ## Hash Arguments
615615///
616- /// * `indent`: Optional. If provided, the JSON output will be pretty-printed with the specified indent level (integer).
617- /// If not provided, the JSON output will be compact (no whitespace).
616+ /// * `indent`: Optional. If provided, the JSON output will be pretty-printed
617+ /// with the specified indent level (integer). If not provided, the JSON
618+ /// output will be compact (no whitespace).
618619///
619620/// This helper is useful for embedding JSON data directly into templates,
620621/// for example, to pass configuration or data to client-side JavaScript code.
0 commit comments