-
Notifications
You must be signed in to change notification settings - Fork 464
remove protobuf dependency with prost-codec feature
#579
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -24,7 +24,7 @@ pub enum Error { | |||||||||||
| ConfigInvalid(String), | ||||||||||||
| /// A protobuf message codec failed in some manner. | ||||||||||||
| #[error("protobuf codec error {0:?}")] | ||||||||||||
| CodecError(#[from] protobuf::ProtobufError), | ||||||||||||
| CodecError(#[from] crate::protocompat::PbError), | ||||||||||||
|
Comment on lines
26
to
+27
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Update error text to match backend-agnostic codec error type. Proposed fix- #[error("protobuf codec error {0:?}")]
+ #[error("codec error {0:?}")]
CodecError(#[from] crate::protocompat::PbError),📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the error message mentions protobuf as a serialisation format not as a crate name. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||||||||||||
| /// The node exists, but should not. | ||||||||||||
| #[error("The node {id} already exists in the {set} set.")] | ||||||||||||
| Exists { | ||||||||||||
|
|
||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May add inline here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done