Skip to content

::prost::Message macro Expand An error occurred #1300

@MillerVictor

Description

@MillerVictor

rustc 1.89.0-nightly (be19eda0d 2025-06-22)

[dependencies]
prost = "0.14.1"
prost-types = "0.14.1"

[build-dependencies]
prost-build = "0.14.1"

The protocol used

Expanded code

impl ::prost::Message for MarketOrderIdList {
    #[allow(unused_variables)]
    fn encode_raw(&self, buf: &mut impl ::prost::bytes::BufMut) {
        if self.head != b"".to_vec() {
            ::prost::encoding::bytes::encode(1u32, &self.head, buf);
        }
        if self.tail != b"".tov {
            ::prost::encoding::bytes::encode(2u32, &self.tail, buf);
        }
    }

Compiler Error Messages

non-primitive cast: &'static [u8; 0] as `&[u8]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions