Skip to content

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

Open
nyurik wants to merge 1 commit intogeorust:mainfrom
nyurik:tupple_acc
Open

Reduce usage of let GeoType(a) = b#84
nyurik wants to merge 1 commit intogeorust:mainfrom
nyurik:tupple_acc

Conversation

@nyurik
Copy link
Copy Markdown
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