Skip to content

Commit

Permalink
Fixed Github Action
Browse files Browse the repository at this point in the history
  • Loading branch information
CEbbinghaus committed Oct 21, 2023
1 parent 2732dfa commit 7463588
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ jobs:
- name: Unzip Result
run: |
cd /tmp/output
unzip MicroSDeck.zip
mkdir release && cd release
unzip /tmp/output/MicroSDeck.zip
- name: Upload Artifacts to Github
if: ${{ !env.ACT }}
uses: actions/upload-artifact@v3
with:
name: "MicroSDeck"
path: /tmp/output/MicroSDeck.zip
path: release/MicroSDeck/*
8 changes: 4 additions & 4 deletions backend/src/ds.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ impl StoreElement {
_ => None,
}
}

fn as_card(&self) -> Option<MicroSDCard> {
match self {
Self::Card(card) => Some(card.clone()),
Expand Down Expand Up @@ -197,7 +197,7 @@ impl StoreData {
.collect()
}

pub fn list_cards_with_games(&self) -> Vec<(MicroSDCard, Vec<Game>)> {
pub fn list_cards_with_games(&self) -> Vec<(MicroSDCard, Vec<&Game>)> {
self.nodes
.iter()
.filter_map(|node| {
Expand All @@ -206,7 +206,7 @@ impl StoreData {
node.1
.links
.iter()
.filter_map(|key: &DefaultKey| self.nodes[*key].element.as_game())
.filter_map(|key: &DefaultKey| self.nodes[*key].element.as_game_ref())
.collect()
})
})
Expand Down Expand Up @@ -309,7 +309,7 @@ impl Store {
self.data.lock().unwrap().list_games()
}

pub fn list_cards_with_games(&self) -> Vec<(MicroSDCard, Vec<Game>)> {
pub fn list_cards_with_games(&self) -> Vec<(MicroSDCard, Vec<&Game>)> {
self.data.lock().unwrap().list_cards_with_games()
}
}

0 comments on commit 7463588

Please sign in to comment.