Skip to content

Commit

Permalink
Merge pull request #3 from jiftechnify/dependabot/cargo/serde_yaml-0.…
Browse files Browse the repository at this point in the history
…9.34deprecated

Build(deps): Bump serde_yaml from 0.8.26 to 0.9.34+deprecated
  • Loading branch information
jiftechnify authored Mar 28, 2024
2 parents fbba678 + 62378de commit 4a323d5
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 50 deletions.
56 changes: 13 additions & 43 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ keywords = ["macro", "query", "extract", "json", "serde"]

[dev-dependencies]
serde_json = "1.0.68"
serde_yaml = "0.8.21"
serde_yaml = "0.9.34"
toml = "0.8.12"
12 changes: 6 additions & 6 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -475,16 +475,16 @@ mod tests {
use super::query_value;
use toml::{
from_str,
value::{Array, Map},
value::{Array, Table},
Value,
};

fn make_sample_toml() -> Value {
let toml_str = include_str!("../res/sample.toml");
from_str(toml_str).unwrap()
}
fn sample_table() -> Map<String, Value> {
Map::from_iter([
fn sample_table() -> Table {
Table::from_iter([
("first".to_string(), Value::String("zzz".to_string())),
("second".to_string(), Value::String("yyy".to_string())),
])
Expand All @@ -496,12 +496,12 @@ mod tests {
.collect()
}
fn sample_arr_of_tables() -> Array {
let t1 = Map::from_iter([("hidden".to_string(), Value::String("tale".to_string()))]);
let t2 = Map::from_iter([
let t1 = Table::from_iter([("hidden".to_string(), Value::String("tale".to_string()))]);
let t2 = Table::from_iter([
("hoge".to_string(), Value::Integer(1)),
("fuga".to_string(), Value::Integer(2)),
]);
let t3 = Map::from_iter([(
let t3 = Table::from_iter([(
"inner_arr".to_string(),
Value::Array(vec![
Value::Integer(1),
Expand Down

0 comments on commit 4a323d5

Please sign in to comment.