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:
parent
39ffb75d91
commit
9e2b423e27
|
@ -53,7 +53,7 @@ where
|
||||||
data: String,
|
data: String,
|
||||||
time: i64,
|
time: i64,
|
||||||
signature: Option<Vec<u8>>,
|
signature: Option<Vec<u8>>,
|
||||||
_type_marker: PhantomData<T>,
|
_type_marker: PhantomData<fn() -> T>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<T> Ticket<T>
|
impl<T> Ticket<T>
|
||||||
|
|
Loading…
Reference in New Issue