/// This method only really exists for testing. Use the `read_config` function.
This method only really exists for testing. Use the `read_config` function.
This method only really exists for testing . Use the ` read_config ` function .
fn parse(_name: &str, input: &str) -> Result<Config, ParseError> {
        toml::from_str(input).map_err(|toml_error| {
            // TODO try and get this working nicely
            //if let Some((line, col)) = toml_error.line_col() {
            //    let offset = miette::SourceOffset::from_location(input, line, col).offset();
            //    ParseError::Located {
            //        input: miette::NamedSource::new(name, input.to_string()),
            //        location: (offset, 0).into(),
            //        description: toml_error.to_string(),
            //    }
            //}
            ParseError::Unlocated {
                description: toml_error.to_string(),
            }
        })
    }
fn parse ( _name : & str , input : & str ) -> Result < Config , ParseError > { toml :: from_str ( input ) . map_err ( | toml_error | { // TODO try and get this working nicely //if let Some((line, col)) = toml_error.line_col() { //    let offset = miette::SourceOffset::from_location(input, line, col).offset(); //    ParseError::Located { //        input: miette::NamedSource::new(name, input.to_string()), //        location: (offset, 0).into(), //        description: toml_error.to_string(), //    } //} ParseError :: Unlocated { description : toml_error . to_string ( ) , } } ) }
This method only really exists for testing.
This method only really exists for testing .
_name
&str
input
&str