From ab5fdad67ff9d8ba3f71eccb278a5945a4d87896 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Thu, 7 Oct 2021 23:25:22 +0200 Subject: cargo fmt the code --- src/main.rs | 2 +- src/output.rs | 2 +- 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(value: T , lower: T, upper: T) -> T { +fn clamp(value: T, lower: T, upper: T) -> T { if value < lower { lower } else if value > upper { -- cgit v1.2.3