diff options
author | Daniel Schadt <kingdread@gmx.de> | 2021-10-07 23:25:22 +0200 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2021-10-07 23:25:22 +0200 |
commit | ab5fdad67ff9d8ba3f71eccb278a5945a4d87896 (patch) | |
tree | 3632ed502dfb02b8ae7508504e4291d197c9ba8e | |
parent | 8510ed3e43ff0a92565815b02645cc7bf5cb6b18 (diff) | |
download | kondou-ab5fdad67ff9d8ba3f71eccb278a5945a4d87896.tar.gz kondou-ab5fdad67ff9d8ba3f71eccb278a5945a4d87896.tar.bz2 kondou-ab5fdad67ff9d8ba3f71eccb278a5945a4d87896.zip |
cargo fmt the code
-rw-r--r-- | src/main.rs | 2 | ||||
-rw-r--r-- | src/output.rs | 2 | ||||
-rw-r--r-- | src/render.rs | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs index 5b11a40..1d7376c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -6,8 +6,8 @@ mod render; mod useropts; use anyhow::{Context, Result}; -use thiserror::Error; use clap::{App, Arg, ArgMatches}; +use thiserror::Error; use api::{Api, Profession, Skill}; use bt::{BuildTemplate, ExtraData, Legend, TraitChoice, Traitline, CODE_REVENANT}; diff --git a/src/output.rs b/src/output.rs index c00d4bb..8186a61 100644 --- a/src/output.rs +++ b/src/output.rs @@ -3,9 +3,9 @@ use super::{ api, bt::{BuildTemplate, Traitline}, }; +use anyhow::Error; use std::{io, io::Write}; use termcolor::{Color, ColorChoice, ColorSpec, StandardStream, WriteColor}; -use anyhow::Error; const HEADER_COLOR: Color = Color::Cyan; diff --git a/src/render.rs b/src/render.rs index 484fd83..b971426 100644 --- a/src/render.rs +++ b/src/render.rs @@ -390,7 +390,7 @@ where }) } -fn clamp<T: PartialOrd>(value: T , lower: T, upper: T) -> T { +fn clamp<T: PartialOrd>(value: T, lower: T, upper: T) -> T { if value < lower { lower } else if value > upper { |