Skip to content

Commit

Permalink
Remove Builder
Browse files Browse the repository at this point in the history
  • Loading branch information
ffakenz committed May 6, 2024
1 parent db5077d commit 14fb872
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 93 deletions.
85 changes: 0 additions & 85 deletions Cargo.lock

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

1 change: 0 additions & 1 deletion backend/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,3 @@ num-traits = "0.2.18"
futures = "0.3.30"
async-trait = "0.1.8"
regex = "1.5.4"
derive_builder = "0.20.0"
8 changes: 4 additions & 4 deletions backend/src/bounty/api/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,26 @@ use serde::{Deserialize, Serialize};
type IssueId = i32;
type PullRequestId = i32;

#[derive(Debug, Serialize, Deserialize, CandidType, Clone, Builder)]
#[derive(Debug, Serialize, Deserialize, CandidType, Clone)]
pub struct Contributor {
pub address: Principal,
pub crypto_address: String,
}

#[derive(Debug, Serialize, Deserialize, CandidType, Clone, Builder)]
#[derive(Debug, Serialize, Deserialize, CandidType, Clone)]
pub struct PullRequest {
pub id: PullRequestId,
pub contributor: Contributor,
}

#[derive(Debug, Serialize, Deserialize, CandidType, Clone, Builder)]
#[derive(Debug, Serialize, Deserialize, CandidType, Clone)]
pub struct Bounty {
pub amount: i32,
pub winner: Option<PullRequestId>,
pub accepted_prs: HashMap<PullRequestId, PullRequest>,
}

#[derive(Debug, Serialize, Deserialize, CandidType, Clone, Builder)]
#[derive(Debug, Serialize, Deserialize, CandidType, Clone)]
pub struct Issue {
pub id: IssueId,
pub maintainer: Contributor,
Expand Down
3 changes: 0 additions & 3 deletions backend/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
#[macro_use]
extern crate derive_builder;

use candid::Principal;

// GITHUB SERVICE
Expand Down

0 comments on commit 14fb872

Please sign in to comment.