formats code

This commit is contained in:
2019-07-20 15:00:28 +02:00
parent 0636829fdd
commit 51a3d00d03
5 changed files with 106 additions and 62 deletions

View File

@@ -24,9 +24,6 @@ pub(crate) struct NewClaim {
impl NewClaim {
pub(crate) fn new(player_id: i32, loot_id: i32) -> Self {
Self {
player_id,
loot_id
}
Self { player_id, loot_id }
}
}

View File

@@ -1,4 +1,4 @@
use crate::schema::{looted};
use crate::schema::looted;
use diesel::dsl::{exists, Eq, Filter, Find, Select};
use diesel::expression::exists::Exists;
use diesel::prelude::*;

View File

@@ -99,7 +99,10 @@ impl<'a> NewPlayer<'a> {
let (cp, sp, gp, pp) = Wealth::from_gp(wealth_in_gp).as_tuple();
Self {
name,
cp, sp, gp, pp,
cp,
sp,
gp,
pp,
}
}
}