Skip to content

Commit c35b5a9

Browse files
committed
rename Field.kind to Field.ty
1 parent 5b429ce commit c35b5a9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

capnp/src/schema.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ impl From<RawBrandedStructSchema> for StructSchema {
132132
pub struct Field {
133133
proto: field::Reader<'static>,
134134
index: u16,
135-
kind: introspect::Type,
135+
ty: introspect::Type,
136136
pub(crate) parent: StructSchema,
137137
}
138138

@@ -142,7 +142,7 @@ impl Field {
142142
}
143143

144144
pub fn get_type(&self) -> introspect::Type {
145-
self.kind
145+
self.ty
146146
}
147147

148148
pub fn get_index(&self) -> u16 {
@@ -178,7 +178,7 @@ impl FieldList {
178178
Field {
179179
proto: self.fields.get(index as u32),
180180
index,
181-
kind: (self.parent.raw.field_types)(index),
181+
ty: (self.parent.raw.field_types)(index),
182182
parent: self.parent,
183183
}
184184
}
@@ -225,7 +225,7 @@ impl FieldSubset {
225225
Field {
226226
proto: self.fields.get(index as u32),
227227
index,
228-
kind: (self.parent.raw.field_types)(index),
228+
ty: (self.parent.raw.field_types)(index),
229229
parent: self.parent,
230230
}
231231
}

0 commit comments

Comments
 (0)