File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -248,12 +248,6 @@ impl ShokuninConfig {
248
248
Ok ( config)
249
249
}
250
250
251
- /// Creates a new `ShokuninConfig` instance from command-line arguments.
252
- pub fn from_str ( config_str : & str ) -> Result < Self , CliError > {
253
- let config: ShokuninConfig = toml:: from_str ( config_str) ?;
254
- config. validate ( ) ?;
255
- Ok ( config)
256
- }
257
251
/// Creates a new `ShokuninConfig` instance from a TOML file.
258
252
pub fn validate ( & self ) -> Result < ( ) , CliError > {
259
253
debug ! ( "Validating config: {:?}" , self ) ;
@@ -581,7 +575,7 @@ mod tests {
581
575
language = "en-GB"
582
576
"# ;
583
577
584
- let config = ShokuninConfig :: from_str ( config_str) ;
578
+ let config: Result < ShokuninConfig , _ > = config_str. parse ( ) ;
585
579
assert ! ( config. is_ok( ) ) ;
586
580
}
587
581
You can’t perform that action at this time.
0 commit comments