Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up Feature::set_field_null #502

Merged
merged 1 commit into from
Dec 21, 2023

Conversation

lnicola
Copy link
Member

@lnicola lnicola commented Dec 21, 2023

  • I agree to follow the project's code of conduct.
  • I added an entry to CHANGES.md if knowledge of this change could be valuable to users.

CC #427 (comment)

@lnicola
Copy link
Member Author

lnicola commented Dec 21, 2023

r? @metasim, @nms-scribe

@lnicola lnicola force-pushed the clean-set-field-null branch from 623562a to cf3c052 Compare December 21, 2023 19:30
Copy link
Contributor

@metasim metasim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM


unsafe { gdal_sys::OGR_F_SetFieldNull(self.c_feature(), field_id) };
let idx = self.field_idx_from_name(field_name)?;
unsafe { gdal_sys::OGR_F_SetFieldNull(self.c_feature(), idx) };
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Much better. Sorry I didn't research this more. Much better this way.

@lnicola lnicola merged commit 06041c0 into georust:master Dec 21, 2023
9 checks passed
@lnicola lnicola deleted the clean-set-field-null branch December 21, 2023 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants