From 3548514d4aeff70277ab8c3b8e50c50dc305d703 Mon Sep 17 00:00:00 2001 From: edef Date: Mon, 29 Apr 2024 14:59:37 +0000 Subject: refactor(nix-compat/wire/bytes/reader): use fn for PhantomData 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 --- tvix/nix-compat/src/wire/bytes/reader/trailer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tvix/nix-compat') 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 { data_len: u8, filled: u8, buf: T::Buf, - _phantom: PhantomData<*const T>, + _phantom: PhantomData T>, } /// read_trailer returns a [Future] that reads a trailer with a given [Tag] from `reader` -- cgit 1.4.1