tools: improve PhantomData usage

The ticket doesn't contain a `T`, it's stringified. We only
produce a new T when verifying.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2022-03-22 12:41:14 +01:00
parent 39ffb75d91
commit 9e2b423e27
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ where
data: String,
time: i64,
signature: Option<Vec<u8>>,
_type_marker: PhantomData<T>,
_type_marker: PhantomData<fn() -> T>,
}
impl<T> Ticket<T>