Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
ikatson committed May 3, 2024
1 parent 6218cac commit c07ebba
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/librqbit/src/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,9 @@ fn merge_two_optional_streams<T>(
}

/// Options for adding new torrents to the session.
#[derive(Default)]
//
// Serialize/deserialize is for Tauri.
#[derive(Default, Serialize, Deserialize)]
pub struct AddTorrentOptions {
/// Start in paused state.
pub paused: bool,
Expand Down Expand Up @@ -312,6 +314,7 @@ pub struct AddTorrentOptions {
/// This is used to restore the session from serialized state.
pub preferred_id: Option<usize>,

#[serde(skip)]
pub storage_factory: Option<BoxStorageFactory>,

// If true, will write to disk in separate threads. The downside is additional allocations.
Expand Down

0 comments on commit c07ebba

Please sign in to comment.