Skip to content

Examples: consistency improvements#651

Merged
Fishrock123 merged 1 commit intohttp-rs:masterfrom
Fishrock123:examples-edits
Jul 20, 2020
Merged

Examples: consistency improvements#651
Fishrock123 merged 1 commit intohttp-rs:masterfrom
Fishrock123:examples-edits

Conversation

@Fishrock123
Copy link
Copy Markdown
Member

This is just a general pass of edits for the examples, for consistency and usability.

  • Use #[async_std::main]
  • Use tide::log::start();
  • Declare more in use.
  • Improved error_handling example.
  • GraphQL example now uses lazy_static!

Plus more misc minor nits.

This is just a general pass of edits for the examples, for consistency and usability.

- Use `#[async_std::main]`
- Use `tide::log::start();`
- Declare more in `use`.
- Improved `error_handling` example.
- GraphQL example now uses `lazy_static!`

Plus more misc minor nits.
Copy link
Copy Markdown
Member

@jbr jbr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 improvements all around!

@Fishrock123 Fishrock123 merged commit 70cc76b into http-rs:master Jul 20, 2020
@Fishrock123 Fishrock123 deleted the examples-edits branch July 20, 2020 19:17
Fishrock123 added a commit to Fishrock123/tide that referenced this pull request Jul 21, 2020
Fishrock123 added a commit to Fishrock123/tide that referenced this pull request Jul 21, 2020
jbr pushed a commit that referenced this pull request Jul 21, 2020
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