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

Reduce usage of let GeoType(a) = b #84

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nyurik
Copy link
Member

@nyurik nyurik commented Mar 19, 2022

Constructs such as

let &geo_types::LineString(ref g_points) = g_line;
w_lines.push(g_points_to_w_linestring(g_points));

cannot be easily ported if we introduce 3D/M coordinates. This PR changes them to the direct tuple access. Eventually we may want to create dedicated tuple member accessors instead.

w_lines.push(g_points_to_w_linestring(&g_line.0));
  • 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.

Constructs such as

```rust
let &geo_types::LineString(ref g_points) = g_line;
w_lines.push(g_points_to_w_linestring(g_points));
```

cannot be easily ported if we introduce 3D/M coordinates. This PR changes them to the direct tuple access. Eventually we may want to create dedicated tuple member accessors instead.

```rust
w_lines.push(g_points_to_w_linestring(&g_line.0));
```
@nyurik nyurik requested a review from michaelkirk April 6, 2022 00:05
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.

1 participant