diff options
author | Florian Klink <flokli@flokli.de> | 2024-04-07T21·46+0300 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2024-04-08T07·02+0000 |
commit | 71a3855f0990cbdadfa5ff109db62912e5f3e320 (patch) | |
tree | 42cd484a21689bb16416d99bbbd748b3d96e10db /users/picnoir/tvix-daemon/src | |
parent | acee48986699a6f0dd567b0f1176fcc32875ca45 (diff) |
feat(tvix/nix-compat/wire): have write_bytes accept AsRef<[u8]> payloads r/7873
This includes String, &str etc. An example testcase with &str is provided. Change-Id: I900186d6ceb52f52bd41ef4596524c1f5b52470b Reviewed-on: https://cl.tvl.fyi/c/depot/+/11376 Autosubmit: flokli <flokli@flokli.de> Tested-by: BuildkiteCI Reviewed-by: picnoir picnoir <picnoir@alternativebit.fr>
Diffstat (limited to 'users/picnoir/tvix-daemon/src')
-rw-r--r-- | users/picnoir/tvix-daemon/src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/users/picnoir/tvix-daemon/src/main.rs b/users/picnoir/tvix-daemon/src/main.rs index 595991b31e02..d18ff2471309 100644 --- a/users/picnoir/tvix-daemon/src/main.rs +++ b/users/picnoir/tvix-daemon/src/main.rs @@ -165,7 +165,7 @@ where // good idea. debug!("write version"); // Plain str padded to 64 bits. - bytes::write_bytes(&mut conn, "2.3.17".as_bytes()).await?; + bytes::write_bytes(&mut conn, "2.3.17").await?; conn.flush().await?; } if protocol_minor >= 35 { |