diff options
author | Pierre-Henri Symoneaux <pierre-henri.symoneaux@nokia.com> | 2017-06-05 15:34:54 +0200 |
---|---|---|
committer | Pierre-Henri Symoneaux <pierre-henri.symoneaux@nokia.com> | 2017-06-05 16:31:04 +0200 |
commit | 4e36ac179fc5341b35221018573e265a1f1a0a53 (patch) | |
tree | 629b1332d2600cafd9292c4426c85de04624108d /examples/basic.rs | |
parent | 14dcf5f9615eeafb8eb7c20732f55d41d1045884 (diff) |
Fixed lint (+clippy) warnings and line endings
Added some lint rustc checks and fixed warnings.
Fixed some clippy warnings & errors
Converted remaining CRLF line endings to LF
Diffstat (limited to 'examples/basic.rs')
-rw-r--r-- | examples/basic.rs | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/examples/basic.rs b/examples/basic.rs index 4ca5d39..fe397d8 100644 --- a/examples/basic.rs +++ b/examples/basic.rs @@ -4,23 +4,23 @@ use prettytable::Table; use prettytable::row::Row; use prettytable::cell::Cell; -/*
- Following main function will print :
- +---------+------+---------+
- | ABC | DEFG | HIJKLMN |
- +---------+------+---------+
- | foobar | bar | foo |
- +---------+------+---------+
- | foobar2 | bar2 | foo2 |
- +---------+------+---------+
- Modified :
- +---------+------+---------+
- | ABC | DEFG | HIJKLMN |
- +---------+------+---------+
- | foobar | bar | foo |
- +---------+------+---------+
- | foobar2 | bar2 | new_foo |
- +---------+------+---------+
+/* + Following main function will print : + +---------+------+---------+ + | ABC | DEFG | HIJKLMN | + +---------+------+---------+ + | foobar | bar | foo | + +---------+------+---------+ + | foobar2 | bar2 | foo2 | + +---------+------+---------+ + Modified : + +---------+------+---------+ + | ABC | DEFG | HIJKLMN | + +---------+------+---------+ + | foobar | bar | foo | + +---------+------+---------+ + | foobar2 | bar2 | new_foo | + +---------+------+---------+ */ fn main() { let mut table = Table::new(); |