Bump tabled from 0.7.0 to 0.8.0 (#701)

* Bump tabled from 0.7.0 to 0.8.0

Bumps [tabled](https://github.com/zhiburt/tabled) from 0.7.0 to 0.8.0.
- [Release notes](https://github.com/zhiburt/tabled/releases)
- [Changelog](https://github.com/zhiburt/tabled/blob/master/CHANGELOG.md)
- [Commits](https://github.com/zhiburt/tabled/compare/v0.7.0...v0.8.0)

---
updated-dependencies:
- dependency-name: tabled
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update tabled formatting and tests

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Matthias <matthias-endler@gmx.net>
This commit is contained in:
dependabot[bot] 2022-08-03 23:22:08 +02:00 committed by GitHub
parent 2e39a003cf
commit 960e32c55f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 11 deletions

23
Cargo.lock generated
View file

@ -436,6 +436,12 @@ version = "1.0.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e245704f60eb4eb45810d65cf14eb54d2eb50a6f3715fe2d7cd01ee905c2944f"
[[package]]
name = "bytecount"
version = "0.6.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2c676a478f63e9fa2dd5368a42f28bba0d6c560b775f38583c8bbaa7fcd67c9c"
[[package]]
name = "bytes"
version = "1.1.0"
@ -2158,10 +2164,12 @@ dependencies = [
[[package]]
name = "papergrid"
version = "0.4.0"
version = "0.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "608b6444acf7f5ea39e8bd06dd6037e34a4b5ddfb29ae840edad49ea798e9e79"
checksum = "453cf71f2a37af495a1a124bf30d4d7469cfbea58e9f2479be9d222396a518a2"
dependencies = [
"bytecount",
"fnv",
"unicode-width",
]
@ -3103,20 +3111,23 @@ dependencies = [
[[package]]
name = "tabled"
version = "0.7.0"
version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2407502760ccfd538f2fb1f843dd87b6daf1a17848d57bc5a25617e408ef4c7a"
checksum = "e5b2f8c37d26d87d2252187b0a45ea3cbf42baca10377c7e7eaaa2800fa9bf97"
dependencies = [
"papergrid",
"tabled_derive",
"unicode-width",
]
[[package]]
name = "tabled_derive"
version = "0.3.0"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "278ea3921cee8c5a69e0542998a089f7a14fa43c9c4e4f9951295da89bd0c943"
checksum = "f9ee618502f497abf593e1c5c9577f34775b111480009ffccd7ad70d23fcaba8"
dependencies = [
"heck 0.4.0",
"proc-macro-error",
"proc-macro2",
"quote",
"syn",

View file

@ -36,7 +36,7 @@ ring = "0.16.20"
serde = { version = "1.0.141", features = ["derive"] }
serde_json = "1.0.82"
structopt = "0.3.26"
tabled = "0.7.0"
tabled = "0.8.0"
tokio = { version = "1.20.1", features = ["full"] }
toml = "0.5.9"
futures = "0.3.21"

View file

@ -45,7 +45,7 @@ fn stats_table(stats: &ResponseStats) -> String {
count: stats.errors + stats.failures,
},
];
let style = tabled::Style::github_markdown().header_intersection('|');
let style = tabled::Style::markdown();
Table::new(stats)
.with(Modify::new(Segment::all()).with(Alignment::left()))
@ -121,8 +121,7 @@ mod tests {
| 🔀 Redirected | 0 |
| 👻 Excluded | 0 |
| Unknown | 0 |
| 🚫 Errors | 0 |
"#;
| 🚫 Errors | 0 |"#;
assert_eq!(table, expected.to_string());
}
@ -150,7 +149,6 @@ mod tests {
| Unknown | 0 |
| 🚫 Errors | 1 |
## Errors per input
### Errors in stdin
* [http://127.0.0.1/](http://127.0.0.1/): Cached: Error (cached) (status code: 404)