Skip to content

Commit

Permalink
update rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
softprops committed Jan 5, 2020
1 parent da4578a commit db6bb1e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
4 changes: 3 additions & 1 deletion rustfmt.toml
Expand Up @@ -3,4 +3,6 @@ fn_args_layout = "Vertical"
# https://github.com/rust-lang/rustfmt/blob/master/Configurations.md#merge_imports
merge_imports = true
# https://github.com/rust-lang/rustfmt/blob/master/Configurations.md#format_code_in_doc_comments
format_code_in_doc_comments = true
format_code_in_doc_comments = true
# https://github.com/rust-lang/rustfmt/blob/master/Configurations.md#edition
edition = "2018"
12 changes: 6 additions & 6 deletions src/lib.rs
Expand Up @@ -40,20 +40,20 @@
//! #[derive(Deserialize, Debug, PartialEq)]
//! #[serde(rename_all = "lowercase")]
//! pub enum Size {
//! Small,
//! Medium,
//! Large
//! Small,
//! Medium,
//! Large,
//! }
//!
//! #[derive(Deserialize, Debug)]
//! struct Config {
//! size: Size,
//! size: Size,
//! }
//!
//! // set env var for size as `SIZE=medium`
//! match envy::from_env::<Config>() {
//! Ok(config) => println!("{:#?}", config),
//! Err(error) => eprintln!("{:#?}", error)
//! Ok(config) => println!("{:#?}", config),
//! Err(error) => eprintln!("{:#?}", error),
//! }
//! ```

Expand Down

0 comments on commit db6bb1e

Please sign in to comment.