summaryrefslogtreecommitdiffstats
path: root/examples/csv.rs
diff options
context:
space:
mode:
authorPierre-Henri Symoneaux <phsym@users.noreply.github.com>2018-09-16 19:53:24 +0200
committerGitHub <noreply@github.com>2018-09-16 19:53:24 +0200
commit550ab354ad9d5c4a2e21ad0b0717ba1ae2ebcfba (patch)
tree7683e11ddb02124e7b13763447e5e656b72a7723 /examples/csv.rs
parentece1d8e012eef9782e175f0485b8da2d9ab8b1db (diff)
parent3d734f731442a3781954903d62a61f2b9c3d686d (diff)
Merge pull request #84 from silwol/csv-1
Update csv to version 1
Diffstat (limited to 'examples/csv.rs')
-rw-r--r--examples/csv.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/csv.rs b/examples/csv.rs
index dd104af..8dbaab1 100644
--- a/examples/csv.rs
+++ b/examples/csv.rs
@@ -25,7 +25,8 @@ fn main() {
table.printstd();
println!("");
- println!("{}", table.to_csv(Vec::new()).unwrap().into_string());
+ println!("{}",
+ String::from_utf8(table.to_csv(Vec::new()).unwrap().into_inner().unwrap()).unwrap());
}
#[cfg(not(feature = "csv"))]