Skip to content

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