From ef24de24a82fe681581cc130f342363c47c0969a Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 7 Jun 2024 07:48:48 +0200 Subject: Merging upstream version 1.75.0+dfsg1. Signed-off-by: Daniel Baumann --- vendor/zerovec/src/varzerovec/databake.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'vendor/zerovec/src/varzerovec/databake.rs') diff --git a/vendor/zerovec/src/varzerovec/databake.rs b/vendor/zerovec/src/varzerovec/databake.rs index 8d9fc0bfc..a3f9db2d1 100644 --- a/vendor/zerovec/src/varzerovec/databake.rs +++ b/vendor/zerovec/src/varzerovec/databake.rs @@ -9,11 +9,11 @@ impl Bake for VarZeroVec<'_, T> { fn bake(&self, env: &CrateEnv) -> TokenStream { env.insert("zerovec"); if self.is_empty() { - quote! { ::zerovec::VarZeroVec::new() } + quote! { zerovec::VarZeroVec::new() } } else { let bytes = databake::Bake::bake(&self.as_bytes(), env); // Safe because self.as_bytes is a safe input - quote! { unsafe { ::zerovec::VarZeroVec::from_bytes_unchecked(#bytes) } } + quote! { unsafe { zerovec::VarZeroVec::from_bytes_unchecked(#bytes) } } } } } @@ -22,11 +22,11 @@ impl Bake for &VarZeroSlice { fn bake(&self, env: &CrateEnv) -> TokenStream { env.insert("zerovec"); if self.is_empty() { - quote! { ::zerovec::VarZeroSlice::new_empty() } + quote! { zerovec::VarZeroSlice::new_empty() } } else { let bytes = databake::Bake::bake(&self.as_bytes(), env); // Safe because self.as_bytes is a safe input - quote! { unsafe { ::zerovec::VarZeroSlice::from_bytes_unchecked(#bytes) } } + quote! { unsafe { zerovec::VarZeroSlice::from_bytes_unchecked(#bytes) } } } } } -- cgit v1.2.3