Skip to content

Commit 66ed31b

Browse files
committed
leading colons on capnp::Word
1 parent 61c5896 commit 66ed31b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

capnpc/src/codegen.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1696,7 +1696,7 @@ fn generate_node(
16961696
Line("fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self {".to_string()),
16971697
Indent(Box::new(Line("builder.init_struct(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE).into()".to_string()))),
16981698
Line("}".to_string()),
1699-
Line("fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [capnp::Word]>) -> ::capnp::Result<Self> {".to_string()),
1699+
Line("fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result<Self> {".to_string()),
17001700
Indent(Box::new(Line("::core::result::Result::Ok(builder.get_struct(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE, default)?.into())".to_string()))),
17011701
Line("}".to_string())]))),
17021702
Line("}".to_string()),
@@ -1759,7 +1759,7 @@ fn generate_node(
17591759
params.params, params.where_clause)),
17601760
Indent(
17611761
Box::new(Branch(vec![
1762-
Line("fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [capnp::Word]>) -> ::capnp::Result<Self> {".to_string()),
1762+
Line("fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result<Self> {".to_string()),
17631763
Indent(Box::new(Line("::core::result::Result::Ok(reader.get_struct(default)?.into())".to_string()))),
17641764
Line("}".to_string())]))),
17651765
Line("}".to_string()),
@@ -2181,7 +2181,7 @@ fn generate_node(
21812181
params.params, params.where_clause)),
21822182
Indent(
21832183
Box::new(Branch(vec![
2184-
Line("fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, _default: ::core::option::Option<&'a [capnp::Word]>) -> ::capnp::Result<Self> {".to_string()),
2184+
Line("fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, _default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result<Self> {".to_string()),
21852185
Indent(Box::new(Line("::core::result::Result::Ok(::capnp::capability::FromClientHook::new(reader.get_capability()?))".to_string()))),
21862186
Line("}".to_string())]))),
21872187
Line("}".to_string())]));
@@ -2195,7 +2195,7 @@ fn generate_node(
21952195
Line("fn init_pointer(_builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self {".to_string()),
21962196
Indent(Box::new(Line("unimplemented!()".to_string()))),
21972197
Line("}".to_string()),
2198-
Line("fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _default: ::core::option::Option<&'a [capnp::Word]>) -> ::capnp::Result<Self> {".to_string()),
2198+
Line("fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result<Self> {".to_string()),
21992199
Indent(Box::new(Line("::core::result::Result::Ok(::capnp::capability::FromClientHook::new(builder.get_capability()?))".to_string()))),
22002200
Line("}".to_string())]))),
22012201
Line("}".to_string()),

0 commit comments

Comments
 (0)