Skip to content

Commit

Permalink
[fix]: import Deserialize in the macro
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitry Balashov <43530070+0x009922@users.noreply.github.com>
  • Loading branch information
0x009922 committed Feb 8, 2024
1 parent 7e88a0d commit 092afee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/base/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ macro_rules! impl_deserialize_from_str {
where
D: $crate::serde::Deserializer<'de>,
{
use $crate::serde::Deserialize;

String::deserialize(deserializer)?
.parse()
.map_err($crate::serde::de::Error::custom)
Expand Down

0 comments on commit 092afee

Please sign in to comment.