enable rustfmt

This commit is contained in:
Terts Diepraam
2022-11-19 19:01:23 +01:00
parent 200c1f8a1f
commit ace2e7bf69
3 changed files with 123 additions and 110 deletions
-2
View File
@@ -1,2 +0,0 @@
disable_all_formatting = true
# For now...
+4 -5
View File
@@ -1,5 +1,5 @@
extern crate term_grid;
use term_grid::{Grid, GridOptions, Direction, Filling, Cell, Alignment};
use term_grid::{Alignment, Cell, Direction, Filling, Grid, GridOptions};
// This produces:
//
@@ -13,8 +13,8 @@ use term_grid::{Grid, GridOptions, Direction, Filling, Cell, Alignment};
fn main() {
let mut grid = Grid::new(GridOptions {
direction: Direction::TopToBottom,
filling: Filling::Text(" | ".into()),
direction: Direction::TopToBottom,
filling: Filling::Text(" | ".into()),
});
for i in 0..48 {
@@ -25,8 +25,7 @@ fn main() {
if let Some(grid_display) = grid.fit_into_width(80) {
println!("{}", grid_display);
}
else {
} else {
println!("Couldn't fit grid into 80 columns!");
}
}
+119 -103
View File
File diff suppressed because it is too large Load Diff