diff options
author | edef <edef@edef.eu> | 2024-04-29T14·59+0000 |
---|---|---|
committer | edef <edef@edef.eu> | 2024-04-29T15·33+0000 |
commit | 3548514d4aeff70277ab8c3b8e50c50dc305d703 (patch) | |
tree | e656271d7d086946ec7f3beff288188270e715ac /tvix/nix-compat/src/wire | |
parent | 84b27760d0e3260434656e15e82362dcea39319f (diff) |
refactor(nix-compat/wire/bytes/reader): use fn for PhantomData r/8032
We don't actually hold a Tag, we just want to bind the type. Change-Id: Ida67c026f852ed54c3f18df914cf5c31e6227fd5 Reviewed-on: https://cl.tvl.fyi/c/depot/+/11541 Tested-by: BuildkiteCI Reviewed-by: flokli <flokli@flokli.de>
Diffstat (limited to 'tvix/nix-compat/src/wire')
-rw-r--r-- | tvix/nix-compat/src/wire/bytes/reader/trailer.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tvix/nix-compat/src/wire/bytes/reader/trailer.rs b/tvix/nix-compat/src/wire/bytes/reader/trailer.rs index 9b8bcaa2de4a..858026bf7135 100644 --- a/tvix/nix-compat/src/wire/bytes/reader/trailer.rs +++ b/tvix/nix-compat/src/wire/bytes/reader/trailer.rs @@ -58,7 +58,7 @@ pub(crate) struct ReadTrailer<R, T: Tag = Pad> { data_len: u8, filled: u8, buf: T::Buf, - _phantom: PhantomData<*const T>, + _phantom: PhantomData<fn(T) -> T>, } /// read_trailer returns a [Future] that reads a trailer with a given [Tag] from `reader` |