diff --git a/src/graphmanager/graphview.rs b/src/graphmanager/graphview.rs index 480d4b4..fa6e545 100644 --- a/src/graphmanager/graphview.rs +++ b/src/graphmanager/graphview.rs @@ -1266,7 +1266,7 @@ impl GraphView { if let Some(id) = attrs.get::(&String::from("id")) { self.set_id(id.parse::().expect("id should be an u32")); } - if let Some(version) = attrs.get::(&"version".to_string()) { + if let Some(version) = attrs.get::(&String::from("version")) { info!("Found file format version: {}", version); } else { warn!("No file format version found");