1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-09 21:20:27 +00:00

Move import to top of file

This commit is contained in:
Isaiah Inuwa
2026-01-13 08:31:27 -06:00
parent dd3f4f73dc
commit 78da05e163

View File

@@ -1,3 +1,4 @@
use base64::{engine::general_purpose::STANDARD, Engine as _};
use serde::{de::Visitor, Deserializer};
pub(crate) fn deserialize_b64<'de, D: Deserializer<'de>>(
@@ -18,7 +19,6 @@ impl Visitor<'_> for Base64Visitor {
where
E: serde::de::Error,
{
use base64::{engine::general_purpose::STANDARD, Engine as _};
STANDARD.decode(v).map_err(|err| E::custom(err))
}
}