fn save_traces_to_directory(traces: &Vec<Trace>, project_dir: &PathBuf) -> Result<PathBuf> {
    let mut path = project_dir.clone();
    path.push(RAUK_JSON_OUTPUT);
    let serialized = serde_json::to_string(traces)?;
    fs::write(&path, serialized)?;
    Ok(path)
}
/// Saves the analysis result to project directory.
Saves the analysis result to project directory.
Saves the analysis result to project directory .
fn save_traces_to_directory(traces: &Vec<Trace>, project_dir: &PathBuf) -> Result<PathBuf> {
    let mut path = project_dir.clone();
    path.push(RAUK_JSON_OUTPUT);
    let serialized = serde_json::to_string(traces)?;
    fs::write(&path, serialized)?;
    Ok(path)
}
fn save_traces_to_directory ( traces : & Vec < Trace > , project_dir : & PathBuf ) -> Result < PathBuf > { let mut path = project_dir . clone ( ) ; path . push ( RAUK_JSON_OUTPUT ) ; let serialized = serde_json :: to_string ( traces ) ? ; fs :: write ( & path , serialized ) ? ; Ok ( path ) }
Saves the analysis result to project directory.
Saves the analysis result to project directory .
traces
&Vec<Trace>
project_dir
&PathBuf
traces
&Vec<Trace>
project_dir
&PathBuf