Thomas 1 year ago
parent
commit
b0b193fb36
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/variants.rs

+ 2 - 2
src/variants.rs

@@ -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<()> {