File tree Expand file tree Collapse file tree 2 files changed +1
-11
lines changed
Expand file tree Collapse file tree 2 files changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -387,7 +387,7 @@ impl<'de, 'gctx> de::MapAccess<'de> for ConfigMapAccess<'gctx> {
387387 . gctx
388388 . get_cv_with_env ( & self . de . key )
389389 . ok ( )
390- . and_then ( |cv| cv. map ( |cv| cv. get_definition ( ) . clone ( ) ) ) ,
390+ . and_then ( |cv| cv. map ( |cv| cv. definition ( ) . clone ( ) ) ) ,
391391 )
392392 } ) ;
393393 self . de . key . pop ( ) ;
Original file line number Diff line number Diff line change @@ -2165,16 +2165,6 @@ impl fmt::Debug for ConfigValue {
21652165}
21662166
21672167impl ConfigValue {
2168- fn get_definition ( & self ) -> & Definition {
2169- match self {
2170- CV :: Boolean ( _, def)
2171- | CV :: Integer ( _, def)
2172- | CV :: String ( _, def)
2173- | CV :: List ( _, def)
2174- | CV :: Table ( _, def) => def,
2175- }
2176- }
2177-
21782168 fn from_toml ( def : Definition , toml : toml:: Value ) -> CargoResult < ConfigValue > {
21792169 let mut error_path = Vec :: new ( ) ;
21802170 Self :: from_toml_inner ( def, toml, & mut error_path) . with_context ( || {
You can’t perform that action at this time.
0 commit comments