Skip to content

Commit dc2c475

Browse files
committed
Fix formatting
1 parent 4a2d321 commit dc2c475

File tree

8 files changed

+11
-9
lines changed

8 files changed

+11
-9
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
use proc_macro2::{Span, TokenStream};
22
use quote::ToTokens;
33
use syn::{
4-
spanned::Spanned, Data, DeriveInput, Error, Expr, Field as SynField, Fields as SynFields,
5-
Ident, Index, Lit, LitBool, LitStr, Result,
4+
Data, DeriveInput, Error, Expr, Field as SynField, Fields as SynFields, Ident, Index, Lit,
5+
LitBool, LitStr, Result, spanned::Spanned,
66
};
77

88
use crate::utils::get_attributes;

cli-table-derive/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ mod table;
1010
mod utils;
1111

1212
use proc_macro::TokenStream;
13-
use syn::{parse_macro_input, DeriveInput};
13+
use syn::{DeriveInput, parse_macro_input};
1414

1515
#[proc_macro_derive(Table, attributes(table))]
1616
/// Derive macro to implementing `cli_table` traits

cli-table-derive/src/utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use syn::{spanned::Spanned, Attribute, Error, Lit, LitBool, Path, Result};
1+
use syn::{Attribute, Error, Lit, LitBool, Path, Result, spanned::Spanned};
22

33
pub fn get_attributes(attrs: &[Attribute]) -> Result<Vec<(Path, Lit)>> {
44
let mut attributes = Vec::new();

cli-table/examples/csv.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use std::{convert::TryFrom, io::Result};
22

3-
use cli_table::{print_stdout, TableStruct};
3+
use cli_table::{TableStruct, print_stdout};
44
use csv::ReaderBuilder;
55

66
fn main() -> Result<()> {

cli-table/examples/nested.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use std::io::Result;
22

3-
use cli_table::{format::Justify, Cell, Style, Table};
3+
use cli_table::{Cell, Style, Table, format::Justify};
44

55
fn main() -> Result<()> {
66
let nested_table = vec![vec![20.cell()]].table();

cli-table/examples/simple.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use std::io::Result;
22

3-
use cli_table::{format::Justify, print_stdout, Cell, Style, Table};
3+
use cli_table::{Cell, Style, Table, format::Justify, print_stdout};
44

55
fn main() -> Result<()> {
66
let table = vec![

cli-table/examples/struct.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
use std::io::Result;
22

33
use cli_table::{
4+
Color, Table, WithTitle,
45
format::{Align, Justify},
5-
print_stdout, Color, Table, WithTitle,
6+
print_stdout,
67
};
78

89
#[derive(Debug, Table)]

cli-table/examples/tuple_struct.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
use std::io::Result;
22

33
use cli_table::{
4+
Table, WithTitle,
45
format::{HorizontalLine, Justify::Right, Separator},
5-
print_stdout, Table, WithTitle,
6+
print_stdout,
67
};
78

89
#[derive(Debug, Table)]

0 commit comments

Comments
 (0)