Skip to content

Commit

Permalink
Remove "extern crate" entirely.
Browse files Browse the repository at this point in the history
Signed-off-by: Victor Polevoy <[email protected]>
  • Loading branch information
iddm committed Aug 12, 2021
1 parent 9df898e commit a427a75
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 25 deletions.
3 changes: 0 additions & 3 deletions examples/example.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
extern crate challonge;
extern crate chrono;

use challonge::tournament::{
TournamentCreate, TournamentId, TournamentIncludes, TournamentState, TournamentType,
};
Expand Down
2 changes: 0 additions & 2 deletions src/attachments.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
//! Challonge Attachment type.

extern crate serde_json;

use crate::error::Error;
use crate::matches::MatchId;
use crate::util::{decode_array, into_map, remove};
Expand Down
17 changes: 4 additions & 13 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,7 @@ impl Challonge {
/// Create new connection to Challonge.
/// # Example
/// ```ignore
/// extern crate challonge;
///
/// use self::challonge::Challonge;
/// use challonge::Challonge;
///
/// let c = Challonge::new("myusername", "myapikey");
/// ```
Expand All @@ -240,12 +238,9 @@ impl Challonge {
/// Retrieve a set of tournaments created with your account.
/// # Example
/// ```ignore
/// extern crate challonge;
/// extern crate chrono;
///
/// use self::challonge::Challonge;
/// use self::challonge::tournament::{ TournamentState, TournamentType };
/// use self::chrono::*;
/// use challonge::Challonge;
/// use challonge::tournament::{ TournamentState, TournamentType };
/// use chrono::*;
///
/// let c = Challonge::new("myusername", "myapikey");
/// let index = c.tournament_index (
Expand Down Expand Up @@ -281,8 +276,6 @@ impl Challonge {
/// Retrieve a single tournament record created with your account.
/// # Example
/// ```ignore
/// extern crate challonge;
///
/// use challonge::Challonge;
///
/// let c = Challonge::new("myusername", "myapikey");
Expand All @@ -306,8 +299,6 @@ impl Challonge {
/// Create a new tournament.
/// # Example
/// ```ignore
/// extern crate challonge;
///
/// use challonge::Challonge;
/// use challonge::tournament::TournamentCreate;
///
Expand Down
2 changes: 0 additions & 2 deletions src/matches.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
//! Challonge Match type.

extern crate serde_json;

use chrono::*;
use serde_json::Value;
use std::fmt;
Expand Down
2 changes: 0 additions & 2 deletions src/participants.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
//! Challonge Participant type.

extern crate serde_json;

use chrono::*;
use serde_json::Value;

Expand Down
3 changes: 0 additions & 3 deletions src/tournament.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
//! Challonge Tournament type.

extern crate serde_json;

use chrono::*;
use serde_json::Value;
use std::fmt;
Expand Down Expand Up @@ -673,7 +671,6 @@ impl fmt::Display for TournamentState {

#[cfg(test)]
mod tests {
extern crate serde_json;
use crate::tournament::{Tournament, TournamentId, TournamentType};

#[test]
Expand Down

0 comments on commit a427a75

Please sign in to comment.