Skip to content

Conversation

ryanhatfield
Copy link

When opening this library in crates.io and then github, I found the README a bit cryptic, it left out actual usage of this crate.

This PR updates the example code to be fully valid rust code.

This can be tested by running cargo new test-crate and adding the contents of the README example to the main.rs file.

Changes to example code:

  • #![allow(unused)] to hide warnings
  • add dependencies used
  • wrap in main function
  • include same code as library example
  • order operations to read/write simple then advanced
  • output test file to validate results

Changes to example code:
* `#![allow(unused)]` to hide warnings
* add dependencies used
* wrap in main function
* include same code as library example
* order operations to read/write simple then advanced
* output test file to validate results
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