mirror of
https://github.com/block/buzz.git
synced 2026-11-16 06:11:34 +00:00
fix: repair main build after cross-PR merge skew (#1020)
This commit is contained in:
@@ -3159,6 +3159,7 @@ mod error_outcome_emission_tests {
|
|||||||
max_turn_duration_secs: 3600,
|
max_turn_duration_secs: 3600,
|
||||||
agents: 1,
|
agents: 1,
|
||||||
heartbeat_interval_secs: 0,
|
heartbeat_interval_secs: 0,
|
||||||
|
turn_liveness_secs: 10,
|
||||||
heartbeat_prompt: None,
|
heartbeat_prompt: None,
|
||||||
system_prompt: None,
|
system_prompt: None,
|
||||||
initial_message: None,
|
initial_message: None,
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ fn decode_webkit_local_storage_value(bytes: &[u8]) -> Option<String> {
|
|||||||
return Some(String::new());
|
return Some(String::new());
|
||||||
}
|
}
|
||||||
|
|
||||||
if bytes.len() % 2 == 0 {
|
if bytes.len().is_multiple_of(2) {
|
||||||
let has_utf16_ascii_shape = bytes.chunks_exact(2).any(|chunk| chunk[1] == 0);
|
let has_utf16_ascii_shape = bytes.chunks_exact(2).any(|chunk| chunk[1] == 0);
|
||||||
if has_utf16_ascii_shape {
|
if has_utf16_ascii_shape {
|
||||||
let utf16: Vec<u16> = bytes
|
let utf16: Vec<u16> = bytes
|
||||||
|
|||||||
Reference in New Issue
Block a user