Skip to content

Commit

Permalink
Allow none/limited/full as aliases for 0-2
Browse files Browse the repository at this point in the history
  • Loading branch information
jyn514 committed Apr 11, 2023
1 parent d861dcf commit 3dbb474
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/cargo/util/toml/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,9 @@ impl<'de> de::Deserialize<'de> for TomlDebugInfo {
E: de::Error,
{
let debuginfo = match value {
"none" => TomlDebugInfo::None,
"limited" => TomlDebugInfo::Limited,
"full" => TomlDebugInfo::Full,
"line-directives-only" => TomlDebugInfo::LineDirectivesOnly,
"line-tables-only" => TomlDebugInfo::LineTablesOnly,
_ => return Err(de::Error::invalid_value(Unexpected::Str(value), &self)),
Expand Down

0 comments on commit 3dbb474

Please sign in to comment.