mirror of
https://github.com/storytold/designcraft.git
synced 2026-11-11 21:02:45 +00:00
Fix failing CI check
- crates/engine/src/script.rs
This commit is contained in:
1 parent
95acc4d47e
commit
ef82d650db
1 file changed
+3
-2
@@ -150,8 +150,9 @@ pub fn resolve(params: &Value, results: &[Value]) -> Result<Value, String> {
|
||||
}
|
||||
out.push_str(rest);
|
||||
if out.len() > MAX_INTERPOLATED_BYTES {
|
||||
return Err(format!("the interpolated text of {} is longer than {MAX_INTERPOLATED_BYTES} bytes", s.get(..40).unwrap_or(s))
|
||||
.replace('\n', " "));
|
||||
return Err(
|
||||
format!("the interpolated text of {} is longer than {MAX_INTERPOLATED_BYTES} bytes", s.get(..40).unwrap_or(s)).replace('\n', " ")
|
||||
);
|
||||
}
|
||||
Value::String(out)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user