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

Maintenance cleanup on dataset.rs #447

Merged
merged 2 commits into from
Oct 2, 2023

Conversation

metasim
Copy link
Contributor

@metasim metasim commented Oct 1, 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.

Changes:

  • Moved ancillary types from dataset.rs into their own or related files.
  • Moved non-core Dataset methods into respective raster or vector modules. Aims to simplify maintainability via "separation of concerns".
  • Removed unsafe from pointer accessor methods.

Possibly breaking changes:

  • Moved LayerIterator, LayerOptions and Transaction to crate::vector.

Aside: The impetus for this refactor is to focus the changes necessary for adding Dataset to #445. But even if that PR takes a different route, this change will benefit long-term maintenance.

Moved non-core Dataset methods into respective `raster` or `vector` modules.
@metasim metasim force-pushed the maintenance/dataset-refactor branch from aaabd74 to 7f5d993 Compare October 1, 2023 21:37
@metasim metasim changed the title Moved ancillary types from dataset.rs dataset.rs Oct 1, 2023
@metasim metasim changed the title dataset.rs Maintenance cleanup on dataset.rs Oct 1, 2023
@metasim metasim marked this pull request as ready for review October 1, 2023 22:42
@@ -611,7 +557,7 @@ impl Drop for FieldDefn {
}

impl MajorObject for FieldDefn {
unsafe fn gdal_object_ptr(&self) -> GDALMajorObjectH {
fn gdal_object_ptr(&self) -> GDALMajorObjectH {
Copy link
Member

Choose a reason for hiding this comment

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

Sneaky!

@metasim
Copy link
Contributor Author

metasim commented Oct 2, 2023

bors r=lnicola

@bors
Copy link
Contributor

bors bot commented Oct 2, 2023

Build succeeded!

The publicly hosted instance of bors-ng is deprecated and will go away soon.

If you want to self-host your own instance, instructions are here.
For more help, visit the forum.

If you want to switch to GitHub's built-in merge queue, visit their help page.

@bors bors bot merged commit f638618 into georust:master Oct 2, 2023
9 checks passed
@metasim metasim deleted the maintenance/dataset-refactor branch October 2, 2023 18:52
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