Skip to content

Commit

Permalink
chore: changed response item to uniform with creature response
Browse files Browse the repository at this point in the history
  • Loading branch information
RakuJa committed May 30, 2024
1 parent ea8dce0 commit e100570
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/models/response_data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ impl From<Creature> for ResponseCreature {

#[derive(Serialize, Deserialize, Clone, ToSchema)]
pub struct ResponseItem {
pub item: Item,
pub core_item: Item,
}

impl From<Item> for ResponseItem {
fn from(value: Item) -> Self {
Self { item: value }
Self { core_item: value }
}
}

0 comments on commit e100570

Please sign in to comment.