Skip to content

Commit 15bc681

Browse files
committed
bump tabled
1 parent 0b44330 commit 15bc681

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

Cargo.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -2787,9 +2787,9 @@ dependencies = [
27872787

27882788
[[package]]
27892789
name = "papergrid"
2790-
version = "0.10.0"
2790+
version = "0.11.0"
27912791
source = "registry+https://github.com/rust-lang/crates.io-index"
2792-
checksum = "a2ccbe15f2b6db62f9a9871642746427e297b0ceb85f9a7f1ee5ff47d184d0c8"
2792+
checksum = "9ad43c07024ef767f9160710b3a6773976194758c7919b17e63b863db0bdf7fb"
27932793
dependencies = [
27942794
"bytecount",
27952795
"fnv",
@@ -5314,9 +5314,9 @@ dependencies = [
53145314

53155315
[[package]]
53165316
name = "tabled"
5317-
version = "0.13.0"
5317+
version = "0.15.0"
53185318
source = "registry+https://github.com/rust-lang/crates.io-index"
5319-
checksum = "4d38d39c754ae037a9bc3ca1580a985db7371cd14f1229172d1db9093feb6739"
5319+
checksum = "4c998b0c8b921495196a48aabaf1901ff28be0760136e31604f7967b0792050e"
53205320
dependencies = [
53215321
"papergrid",
53225322
"unicode-width",

src/tools/opt-dist/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ glob = "0.3"
2323
tempfile = "3.5"
2424
derive_builder = "0.20"
2525
clap = { version = "4", features = ["derive"] }
26-
tabled = { version = "0.13", default-features = false, features = ["std"] }
26+
tabled = { version = "0.15", default-features = false, features = ["std"] }

src/tools/opt-dist/src/utils/artifact_size.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use std::io::Write;
22

33
use tabled::builder::Builder;
44
use tabled::settings::object::Columns;
5-
use tabled::settings::style::{BorderChar, Offset};
5+
use tabled::settings::style::{LineChar, Offset};
66
use tabled::settings::{Modify, Style};
77

88
use crate::environment::Environment;
@@ -40,19 +40,19 @@ pub fn print_binary_sizes(env: &Environment) -> anyhow::Result<()> {
4040
// Write to GitHub summary
4141
if let Ok(summary_path) = std::env::var("GITHUB_STEP_SUMMARY") {
4242
let mut builder = Builder::default();
43+
builder.push_record(vec!["Artifact", "Size"]);
4344
for (name, size_formatted) in items {
4445
builder.push_record(vec![name, size_formatted]);
4546
}
4647

47-
builder.set_header(vec!["Artifact", "Size"]);
4848
let mut table = builder.build();
4949

5050
let mut file = std::fs::File::options().append(true).create(true).open(summary_path)?;
5151
writeln!(
5252
file,
5353
"# Artifact size\n{}\n",
5454
table.with(Style::markdown()).with(
55-
Modify::new(Columns::single(1)).with(BorderChar::horizontal(':', Offset::End(0))),
55+
Modify::new(Columns::single(1)).with(LineChar::horizontal(':', Offset::End(0))),
5656
)
5757
)?;
5858
}

0 commit comments

Comments
 (0)