diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-07 05:48:48 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-07 05:48:48 +0000 |
commit | ef24de24a82fe681581cc130f342363c47c0969a (patch) | |
tree | 0d494f7e1a38b95c92426f58fe6eaa877303a86c /vendor/zerovec/src/varzerovec/databake.rs | |
parent | Releasing progress-linux version 1.74.1+dfsg1-1~progress7.99u1. (diff) | |
download | rustc-ef24de24a82fe681581cc130f342363c47c0969a.tar.xz rustc-ef24de24a82fe681581cc130f342363c47c0969a.zip |
Merging upstream version 1.75.0+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/zerovec/src/varzerovec/databake.rs')
-rw-r--r-- | vendor/zerovec/src/varzerovec/databake.rs | 8 |
1 files changed, 4 insertions, 4 deletions
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<T: VarULE + ?Sized> 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<T: VarULE + ?Sized> Bake for &VarZeroSlice<T> { 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) } } } } } |