diff --git a/codex-rs/core-plugins/src/startup_sync.rs b/codex-rs/core-plugins/src/startup_sync.rs index ee91e3efe4..27125ecf14 100644 --- a/codex-rs/core-plugins/src/startup_sync.rs +++ b/codex-rs/core-plugins/src/startup_sync.rs @@ -960,7 +960,7 @@ async fn fetch_github_bytes( "{context} from {url} failed with status {status}: {body_text}" )); } - Ok(body.to_vec()) + Ok(Vec::from(body)) } async fn fetch_public_text( @@ -1007,7 +1007,7 @@ async fn fetch_public_bytes( "{context} from {url} failed with status {status}: {body_text}" )); } - Ok(body.to_vec()) + Ok(Vec::from(body)) } fn github_request(http_clients: &StartupSyncHttpClient, url: &str) -> RequestBuilder {