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

convert to using match #10

Merged
merged 1 commit into from
Feb 13, 2021
Merged

convert to using match #10

merged 1 commit into from
Feb 13, 2021

Conversation

bmc-msft
Copy link

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
Copy link
Owner

gukoff commented Feb 13, 2021

Looks great, thanks for the contribution!

@gukoff gukoff merged commit 929c697 into gukoff:master Feb 13, 2021
@bmc-msft bmc-msft deleted the use-match branch June 24, 2021 14:10
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