Skip to content

Commit

Permalink
Add PromoType variants and missing doc comment on Search::query_string (
Browse files Browse the repository at this point in the history
#50)

* Update promo_types.rs

* Add Resale variant to PromoType

* Add missing doc comment
  • Loading branch information
frsrblch authored Jan 1, 2025
1 parent d000345 commit a06388b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/card/promo_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ use serde::{Deserialize, Serialize};
pub enum PromoType {
Alchemy,
Arenaleague,
Beginnerbox,
Boosterfun,
Boxtopper,
Brawldeck,
Expand Down Expand Up @@ -73,6 +74,7 @@ pub enum PromoType {
Ravnicacity,
Rebalanced,
Release,
Resale,
Ripplefoil,
Schinesealtart,
Scroll,
Expand All @@ -82,6 +84,7 @@ pub enum PromoType {
Silverfoil,
Sldbonus,
Stamped,
Startercollection,
Starterdeck,
Stepandcompleat,
Storechampionship,
Expand Down
1 change: 1 addition & 0 deletions src/search.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ pub trait Search {
/// Write this search as the query for the given `Url`.
fn write_query(&self, url: &mut Url) -> crate::Result<()>;

/// Returns the constructed query string for testing purposes.
#[cfg(test)]
fn query_string(&self) -> crate::Result<String> {
let mut url = Url::parse("http://localhost")?;
Expand Down

0 comments on commit a06388b

Please sign in to comment.