Skip to content

Commit

Permalink
delete comments
Browse files Browse the repository at this point in the history
  • Loading branch information
pront committed Aug 22, 2023
1 parent 0c8a56d commit 8309d22
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/config/format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
use std::path::Path;
use std::str::FromStr;

// use proptest::prelude::{Arbitrary, BoxedStrategy, Just, Strategy};
// use proptest::prop_oneof;
use serde::de;

/// A type alias to better capture the semantics.
Expand Down Expand Up @@ -37,16 +35,6 @@ impl FromStr for Format {
}
}

// #[cfg(test)]
// impl Arbitrary for Format {
// type Parameters = ();
// fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy {
// prop_oneof![Just(Format::Toml), Just(Format::Json), Just(Format::Yaml),].boxed()
// }
//
// type Strategy = BoxedStrategy<Self>;
// }

impl Format {
/// Obtain the format from the file path using extension as a hint.
pub fn from_path<T: AsRef<Path>>(path: T) -> Result<Self, T> {
Expand Down

0 comments on commit 8309d22

Please sign in to comment.