Skip to content

Commit f4e1ff1

Browse files
committed
one more gen -> ctx
1 parent c3b2944 commit f4e1ff1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

capnpc/src/pointer_constants.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ pub fn word_array_declaration(
5656
let vis = if options.public { "pub " } else { "" };
5757
Ok(Branch(vec![
5858
Line(format!(
59-
"{}static {}: [capnp::Word; {}] = [",
59+
"{}static {}: [::capnp::Word; {}] = [",
6060
vis,
6161
name,
6262
words.len() / 8
@@ -67,7 +67,7 @@ pub fn word_array_declaration(
6767
}
6868

6969
pub fn generate_pointer_constant(
70-
gen: &GeneratorContext,
70+
ctx: &GeneratorContext,
7171
styled_name: &str,
7272
typ: type_::Reader,
7373
value: any_pointer::Reader,
@@ -76,7 +76,7 @@ pub fn generate_pointer_constant(
7676
Line(format!(
7777
"pub static {}: ::capnp::constant::Reader<{}> = {{",
7878
styled_name,
79-
typ.type_string(gen, Leaf::Owned)?
79+
typ.type_string(ctx, Leaf::Owned)?
8080
)),
8181
Indent(Box::new(Branch(vec![
8282
word_array_declaration(

0 commit comments

Comments
 (0)