chore(tvix/tools/turbofetch): bump magic-buffer to 0.1.1

This contains https://github.com/sklose/magic-buffer/pull/4, so we don't
have to impl Send ourselves.

Change-Id: If046596e13345ad4fec22209440e65859e44d540
Reviewed-on: https://cl.tvl.fyi/c/depot/+/10748
Autosubmit: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
Reviewed-by: edef <edef@edef.eu>
This commit is contained in:
Florian Klink 2024-02-07 09:21:26 +01:00 committed by clbot
parent 70c068df51
commit 4e040e8bc4
4 changed files with 25 additions and 16 deletions

View file

@ -12,10 +12,6 @@ pub struct Buffer {
tail: usize,
}
// SAFETY: MagicBuffer isn't bound to a thread, and neither are any of the other fields.
// MagicBuffer ought to be Send+Sync itself, upstream PR at https://github.com/sklose/magic-buffer/pull/4
unsafe impl Send for Buffer {}
impl Buffer {
/// Allocate a fresh buffer, with the specified capacity.
/// The buffer can contain at most `capacity - 1` bytes.