Skip to content

Commit 6838af9

Browse files
committed
Upgraded dependencies
1 parent 4f2a5d7 commit 6838af9

File tree

4 files changed

+20
-24
lines changed

4 files changed

+20
-24
lines changed

cli-table-derive/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ edition = "2018"
1515
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1616

1717
[dependencies]
18-
proc-macro2 = "1.0.47"
19-
syn = "1.0.102"
20-
quote = "1.0.21"
18+
proc-macro2 = "1.0.86"
19+
syn = "1.0.109"
20+
quote = "1.0.36"
2121

2222
[lib]
2323
proc-macro = true

cli-table-derive/src/context/container.rs

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
use proc_macro2::Span;
21
use quote::quote;
3-
use syn::{spanned::Spanned, DeriveInput, Error, Ident, Lit, Path, Result};
2+
use syn::{DeriveInput, Error, Ident, Lit, Path, Result};
43

54
use crate::utils::get_attributes;
65

76
pub struct Container<'a> {
87
pub crate_name: Path,
98
pub name: &'a Ident,
10-
pub span: Span,
119
}
1210

1311
impl<'a> Container<'a> {
@@ -28,7 +26,7 @@ impl<'a> Container<'a> {
2826
}
2927
}
3028

31-
let mut container_builder = Container::builder(&input.ident, input.span());
29+
let mut container_builder = Container::builder(&input.ident);
3230

3331
if let Some(crate_name) = crate_name {
3432
container_builder.crate_name(crate_name);
@@ -37,23 +35,21 @@ impl<'a> Container<'a> {
3735
Ok(container_builder.build())
3836
}
3937

40-
fn builder(name: &'a Ident, span: Span) -> ContainerBuilder<'a> {
41-
ContainerBuilder::new(name, span)
38+
fn builder(name: &'a Ident) -> ContainerBuilder<'a> {
39+
ContainerBuilder::new(name)
4240
}
4341
}
4442

4543
struct ContainerBuilder<'a> {
4644
crate_name: Option<Path>,
4745
name: &'a Ident,
48-
span: Span,
4946
}
5047

5148
impl<'a> ContainerBuilder<'a> {
52-
pub fn new(name: &'a Ident, span: Span) -> Self {
49+
pub fn new(name: &'a Ident) -> Self {
5350
Self {
5451
crate_name: None,
5552
name,
56-
span,
5753
}
5854
}
5955

@@ -68,7 +64,6 @@ impl<'a> ContainerBuilder<'a> {
6864
.crate_name
6965
.unwrap_or_else(|| syn::parse2(quote!(::cli_table)).unwrap()),
7066
name: self.name,
71-
span: self.span,
7267
}
7368
}
7469
}

cli-table/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ path = "src/lib.rs"
2020

2121
[dependencies]
2222
cli-table-derive = { path = "../cli-table-derive", optional = true }
23-
csv = { version = "1.1.6", optional = true }
24-
termcolor = "1.1.3"
25-
unicode-width = "0.1.10"
23+
csv = { version = "1.3.0", optional = true }
24+
termcolor = "1.4.1"
25+
unicode-width = "0.1.13"
2626

2727
[features]
2828
default = ["csv", "derive"]
Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
error[E0277]: `Vec<u8>` doesn't implement `std::fmt::Display`
2-
--> $DIR/non-display-member.rs:6:5
1+
error[E0277]: the trait bound `&Vec<u8>: cli_table::Cell` is not satisfied
2+
--> tests/ui/non-display-member.rs:6:5
33
|
4+
4 | #[derive(Table)]
5+
| ----- required by a bound introduced by this call
6+
5 | struct Test {
47
6 | / #[table(title = "a")]
58
7 | | a: Vec<u8>,
6-
| |______________^ `Vec<u8>` cannot be formatted with the default formatter
9+
| |_____^ the trait `std::fmt::Display` is not implemented for `&Vec<u8>`, which is required by `&Vec<u8>: cli_table::Cell`
710
|
8-
= help: the trait `std::fmt::Display` is not implemented for `Vec<u8>`
9-
= note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
10-
= note: required because of the requirements on the impl of `std::fmt::Display` for `&Vec<u8>`
11-
= note: required because of the requirements on the impl of `cli_table::Cell` for `&Vec<u8>`
12-
= note: required by `cell`
11+
= help: the trait `cli_table::Cell` is implemented for `CellStruct`
12+
= note: required for `&Vec<u8>` to implement `std::fmt::Display`
13+
= note: required for `&Vec<u8>` to implement `cli_table::Cell`

0 commit comments

Comments
 (0)