Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion influxdb_derive/src/writeable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,12 @@ impl TryFrom<Field> for WriteableField {
type Error = syn::Error;

fn try_from(field: Field) -> syn::Result<WriteableField> {
let ident = field.ident.expect("fields without ident are not supported");
let Some(ident) = field.ident else {
return Err(syn::Error::new_spanned(
&field,
"fields without ident are not supported",
));
};
let ty = field.ty;
let mut has_time_attr = false;
let mut is_tag = false;
Expand Down