Populate garage data from factory purchase better #6

This commit is contained in:
NG (Graham) committed 2025-05-18 16:55:12 -04:00
1 parent 3f1438c068
commit 49781d35b2
8 files changed
+49 -14

No files matched your search

+1 -1
View File
@@ -6,7 +6,7 @@ pub enum Factory {
#[async_trait::async_trait]
impl rc_factory::VehicleFactoryAdapter for Factory {
async fn vehicle(&self, id: u32) -> Result<Option<rc_factory::VehicleInfo>, Box<dyn std::error::Error>> {
async fn vehicle(&self, id: u32) -> Result<Option<(rc_factory::VehicleInfo, rc_factory::VehicleQueryInfo)>, Box<dyn std::error::Error>> {
match self {
Self::Arc(x) => x.vehicle(id).await,
Self::Custom(x) => x.vehicle(id).await,