Run rustfmt on everything

This commit is contained in:
AppleTheGolden
2020-05-27 20:51:28 +02:00
parent c49f0ede16
commit 91274267e5
11 changed files with 54 additions and 34 deletions

View File

@@ -5,7 +5,14 @@ use handlebars::*;
pub struct HumanFormatHelper;
impl HelperDef for HumanFormatHelper {
fn call<'reg: 'rc, 'rc>(&self, h: &Helper<'reg, 'rc>, _r: &'reg Handlebars<'_>, _ctx: &'rc Context, _rc: &mut RenderContext<'reg, 'rc>, out: &mut dyn Output) -> HelperResult {
fn call<'reg: 'rc, 'rc>(
&self,
h: &Helper<'reg, 'rc>,
_r: &'reg Handlebars<'_>,
_ctx: &'rc Context,
_rc: &mut RenderContext<'reg, 'rc>,
out: &mut dyn Output,
) -> HelperResult {
let param = h.param(0).and_then(|v| v.value().as_f64()).unwrap_or(0.0);
let mut formatted = human_format::Formatter::new().format(param);
@@ -15,4 +22,4 @@ impl HelperDef for HumanFormatHelper {
Ok(())
}
}
}