Skip to content

Commit

Permalink
convert to variant early
Browse files Browse the repository at this point in the history
  • Loading branch information
SeaDve committed Dec 15, 2023
1 parent 41fd79e commit 0f33dd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/graph_view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ impl GraphView {
let args = args
.iter()
.enumerate()
.map(|(index, value)| (format!("arg{}", index), value))
.map(|(index, value)| (format!("arg{}", index), value.to_variant()))
.collect::<Vec<_>>();

let body = format!(
Expand All @@ -305,7 +305,7 @@ impl GraphView {
} else {
let arg_dict = glib::VariantDict::new(None);
for (name, value) in args {
arg_dict.insert(&name, value.to_variant());
arg_dict.insert(&name, value);
}
Some(arg_dict.end())
};
Expand Down

0 comments on commit 0f33dd9

Please sign in to comment.