Page MenuHomePhabricator

[identity] Update SignedDeviceList::from_str to return tonic::Status
ClosedPublic

Authored by bartek on Sep 2 2024, 11:27 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 22, 10:26 AM
Unknown Object (File)
Fri, Nov 22, 5:33 AM
Unknown Object (File)
Sat, Nov 9, 3:06 PM
Unknown Object (File)
Sat, Nov 9, 2:42 PM
Unknown Object (File)
Sat, Nov 9, 2:41 PM
Unknown Object (File)
Sat, Nov 9, 7:51 AM
Unknown Object (File)
Thu, Nov 7, 5:59 PM
Unknown Object (File)
Oct 25 2024, 1:46 AM
Subscribers

Details

Summary

Noticed that we're using type Error = serde_json::Error in FromStr, but we map it everywhere to tonic::Status.
Refactored this to map it only in one place and avoid adding another mapping in the next diff

Depends on D13222

Test Plan

cargo build -p identity

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage