Skip to content

Conversation

@spookydonut
Copy link
Collaborator

@spookydonut spookydonut commented Jul 10, 2022

todo: add test cases

}

pub fn read_toml_string(toml: String) -> Result<Config, Error> {
Ok(toml::from_str(&toml)?)
Copy link
Owner

Choose a reason for hiding this comment

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

If this takes &str, presumably so could the chain that calls it, rather than requiring config.to_string() in the tests

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