Skip to content

Commit

Permalink
fix: 🐛 use correct deserialize function
Browse files Browse the repository at this point in the history
  • Loading branch information
Xminent committed Jan 19, 2024
1 parent 75d28ed commit fa7e814
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/permissions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ void to_json(nlohmann::json &j, const Permissions &p) {
}

void from_json(const nlohmann::json &j, Permissions &p) {
auto res = json_util::deserialize<uint64_t>(j);
if (res) { p = static_cast<Permissions>(res.value()); }
json_util::detail::deserialize_impl(j, p);
}
} // namespace ekizu

0 comments on commit fa7e814

Please sign in to comment.