-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
style: make component formatting more standard (#64)
* style: make component formatting more standard - Reformat everything to 4 spaces and 100 characters per line - Remove the rust-toolchain.toml file - Remove the .rustfmt.toml file which had many unstable options - hard code the crossterm_io to use stdout instead of making this an option. Users can change this easily if they want to use stderr, and not prompting for it simplifies the template * refactor: stylistic changes to FpsCounter Updated the default FPS CLI args to match the defaults in the app * fix: various clippy lints - unused code etc. * refactor: use tracing instead of log and more formatting fixes * refactor: smaller app methods * refactor: use comments instead of attribute to document cli params * refactor(components): small stylistic changes * refactor(config): remove underscores from data_dir and config_dir fields * refactor(utils, config): split into logging and error_handling modules * refactor(mode): move Mode to app module * refactor(config,tui): reenable allow dead code lint for The unused code is useful to keep here * refactor(tui): move event loop into a function * refactor(errors): rename error_handling module to errors
- Loading branch information
Showing
20 changed files
with
1,277 additions
and
1,250 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
[values] | ||
gh-username = "ratatui" | ||
project-description = "Example of ratatui template" | ||
msrv = "nightly" | ||
use_gitserver = false | ||
crossterm_io = "stderr" | ||
use_rustfmt = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
[values] | ||
gh-username = "kdheepak" | ||
project-description = "Example of ratatui template" | ||
msrv = "stable" | ||
use_gitserver = false | ||
crossterm_io = "stderr" | ||
use_rustfmt = false |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
fn main() -> Result<(), Box<dyn std::error::Error>> { | ||
vergen::EmitBuilder::builder().all_build().all_git().emit()?; | ||
Ok(()) | ||
vergen::EmitBuilder::builder() | ||
.all_build() | ||
.all_git() | ||
.emit()?; | ||
Ok(()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,15 @@ | ||
use std::{fmt, string::ToString}; | ||
|
||
use serde::{ | ||
de::{self, Deserializer, Visitor}, | ||
Deserialize, Serialize, | ||
}; | ||
use serde::{Deserialize, Serialize}; | ||
use strum::Display; | ||
|
||
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Display, Deserialize)] | ||
#[derive(Debug, Clone, PartialEq, Eq, Display, Serialize, Deserialize)] | ||
pub enum Action { | ||
Tick, | ||
Render, | ||
Resize(u16, u16), | ||
Suspend, | ||
Resume, | ||
Quit, | ||
ClearScreen, | ||
Error(String), | ||
Help, | ||
Tick, | ||
Render, | ||
Resize(u16, u16), | ||
Suspend, | ||
Resume, | ||
Quit, | ||
ClearScreen, | ||
Error(String), | ||
Help, | ||
} |
Oops, something went wrong.