fix graph dump build

This commit is contained in:
Alwin Berger 2023-09-25 12:04:47 +02:00
parent 3a601fe250
commit 4e18b8fdab

View File

@ -563,7 +563,7 @@ pub fn fuzz() {
{ {
let mut gd = String::from(&td); let mut gd = String::from(&td);
gd.push_str(".graph" ); gd.push_str(".graph" );
if let Some(md) = state.named_metadata_mut().get_mut::<SysGraphFeedbackState>("SysMap") { if let Some(md) = state.named_metadata_map_mut().get_mut::<SysGraphFeedbackState>("SysMap") {
fs::write(&gd,ron::to_string(&md).expect("Failed to serialize graph")).expect("Failed to write graph"); fs::write(&gd,ron::to_string(&md).expect("Failed to serialize graph")).expect("Failed to write graph");
} }
} }
@ -618,7 +618,7 @@ pub fn fuzz() {
{ {
let mut gd = String::from(&td); let mut gd = String::from(&td);
gd.push_str(".graph"); gd.push_str(".graph");
if let Ok(md) = state.metadata_mut::<SysGraphFeedbackState>() { if let Some(md) = state.named_metadata_map_mut().get_mut::<SysGraphFeedbackState>("SysMap") {
fs::write(&gd,ron::to_string(&md).expect("Failed to serialize graph")).expect("Failed to write graph"); fs::write(&gd,ron::to_string(&md).expect("Failed to serialize graph")).expect("Failed to write graph");
} }
} }