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)
Wed, Apr 23, 12:46 AM
Unknown Object (File)
Fri, Apr 18, 3:52 PM
Unknown Object (File)
Thu, Apr 17, 10:31 AM
Unknown Object (File)
Wed, Apr 16, 11:41 PM
Unknown Object (File)
Wed, Apr 16, 11:33 PM
Unknown Object (File)
Tue, Apr 15, 8:14 PM
Unknown Object (File)
Sun, Apr 6, 8:31 AM
Unknown Object (File)
Mar 15 2025, 4:05 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
Lint Not Applicable
Unit
Tests Not Applicable