Skip to content
This repository has been archived by the owner on Mar 18, 2023. It is now read-only.

Commit

Permalink
⬆️ Chores
Browse files Browse the repository at this point in the history
  • Loading branch information
eigenein committed Feb 20, 2023
1 parent 0bc4fd1 commit 670f418
Show file tree
Hide file tree
Showing 13 changed files with 189 additions and 52 deletions.
16 changes: 8 additions & 8 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/database/mongodb/models/account.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ impl Account {
Self::collection(in_)
.update_one(filter, update, options)
.await
.with_context(|| format!("failed to ensure the account #{} existence", account_id))?;
.with_context(|| format!("failed to ensure the account #{account_id} existence"))?;
Ok(())
}

Expand Down
2 changes: 1 addition & 1 deletion src/database/mongodb/models/tank_snapshot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ impl TankSnapshot {
.await
.context("timed out to retrieve the latest tanks snapshots")??
.with_context(|| {
format!("failed to retrieve the latest tank snapshots for #{}", account_id)
format!("failed to retrieve the latest tank snapshots for #{account_id}")
})?;
let stream = cursor
.try_filter_map(|document| async move {
Expand Down
16 changes: 0 additions & 16 deletions src/tankopedia.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,14 +118,6 @@ fn insert_missing_vehicles(vehicles: &mut BTreeMap<String, Vehicle>) -> Result {
nation: Nation::Japan,
type_: TankType::Light,
},
Vehicle {
tank_id: 3329,
name: Cow::Borrowed("MS-1 mod. 1"),
tier: 1,
is_premium: false,
nation: Nation::Ussr,
type_: TankType::Light,
},
Vehicle {
tank_id: 23297,
name: Cow::Borrowed("Объект 244"),
Expand Down Expand Up @@ -190,14 +182,6 @@ fn insert_missing_vehicles(vehicles: &mut BTreeMap<String, Vehicle>) -> Result {
nation: Nation::Europe,
type_: TankType::Heavy,
},
Vehicle {
tank_id: 26913,
name: Cow::Borrowed("Frosty"),
tier: 6,
is_premium: true,
nation: Nation::Usa,
type_: TankType::Light,
},
Vehicle {
tank_id: 10545,
name: Cow::Borrowed("Wind"),
Expand Down
74 changes: 69 additions & 5 deletions src/tankopedia/generated.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 670f418

Please sign in to comment.