Skip to content

Commit

Permalink
feat: [#870] remove Copy trait from TrackerMode
Browse files Browse the repository at this point in the history
  • Loading branch information
josecelano committed May 21, 2024
1 parent 932e66e commit 74d8f79
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/primitives/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ pub type PersistentTorrents = BTreeMap<InfoHash, u32>;
///
/// Refer to [Torrust Tracker Configuration](https://docs.rs/torrust-tracker-configuration)
/// to know how to configure the tracker to run in each mode.
#[derive(Serialize, Deserialize, Copy, Clone, PartialEq, Eq, Debug)]
#[derive(Serialize, Deserialize, Clone, PartialEq, Eq, Debug)]
pub enum TrackerMode {
/// Will track every new info hash and serve every peer.
#[serde(rename = "public")]
Expand Down
2 changes: 1 addition & 1 deletion src/core/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ impl Tracker {
) -> Result<Tracker, databases::error::Error> {
let database = Arc::new(databases::driver::build(&config.db_driver, &config.db_path)?);

let mode = config.mode;
let mode = config.mode.clone();

Ok(Tracker {
//config,
Expand Down

0 comments on commit 74d8f79

Please sign in to comment.