gukoff / dtparse

Fast datetime parser for Python written in Rust
MIT License
74 stars 2 forks source link

convert to using match #10

Closed bmc-msft closed 3 years ago

bmc-msft commented 3 years ago

This PR does a few things:

  1. Moves to using match rather than is_err() and unwrap().
  2. Returns the PyDateTime, since this is a PyResult already
  3. Removes to_owned(), since to_string() is already owned.
gukoff commented 3 years ago

Looks great, thanks for the contribution!