Skip to content

Commit

Permalink
feat: Support .yml configuration files
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzzypixelz committed Mar 4, 2024
1 parent fa40a4d commit 89e5637
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commons/zenoh-config/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ impl Config {
}),
Err(e) => bail!(e),
},
Some("yaml") => Config::from_deserializer(serde_yaml::Deserializer::from_str(&content)).map_err(|e| match e {
Some("yaml") | Some("yml") => Config::from_deserializer(serde_yaml::Deserializer::from_str(&content)).map_err(|e| match e {
Ok(c) => zerror!("Invalid configuration: {}", c).into(),
Err(e) => zerror!("YAML error: {}", e).into(),
}),
Expand Down

0 comments on commit 89e5637

Please sign in to comment.