|
|
@@ -723,7 +723,7 @@ impl Variants {
|
|
|
.collect()
|
|
|
}
|
|
|
|
|
|
- pub fn stats(&self) -> Result<String> {
|
|
|
+ pub fn stats(&self) -> Result<Vec<Stat>> {
|
|
|
let mut callers_cat = HashMap::new();
|
|
|
let mut n_caller_data = 0;
|
|
|
|
|
|
@@ -868,7 +868,7 @@ impl Variants {
|
|
|
|
|
|
let res = serde_json::to_string(&results)?;
|
|
|
|
|
|
- Ok(res)
|
|
|
+ Ok(results)
|
|
|
}
|
|
|
|
|
|
pub fn save_sql(&self, path: &str) -> Result<()> {
|