Skip to content

Commit

Permalink
Added unreachable_pub lint to prevent the PlayerEvents issue from reo…
Browse files Browse the repository at this point in the history
…ccuring.

Note: due to a compiler error, the root-level `metadata` re-exports had to be
split into 3; see
rust-lang/rust#64762
  • Loading branch information
ischeinkman committed Feb 12, 2020
1 parent b2f6fe7 commit 1bad1eb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
trivial_casts,
trivial_numeric_casts,
unsafe_code,
unreachable_pub,
unstable_features,
unused_import_braces,
unused_qualifications
Expand Down Expand Up @@ -50,6 +51,8 @@ extern crate from_variants;
extern crate dbus;

mod extensions;

#[allow(unreachable_pub)]
mod generated;

mod event;
Expand All @@ -62,7 +65,9 @@ mod track_list;

pub use crate::event::{Event, EventError, PlayerEvents};
pub use crate::find::{FindingError, PlayerFinder};
pub use crate::metadata::{Metadata, Value as MetadataValue, ValueKind as MetadataValueKind};
pub use crate::metadata::Metadata;
pub use crate::metadata::ValueKind as MetadataValueKind;
pub use crate::metadata::Value as MetadataValue;
pub use crate::player::Player;
pub use crate::progress::{Progress, ProgressError, ProgressTick, ProgressTracker};
pub use crate::track_list::{TrackID, TrackList, TrackListError};
Expand Down
2 changes: 1 addition & 1 deletion src/player.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ pub(crate) const MPRIS2_PREFIX: &str = "org.mpris.MediaPlayer2.";
pub(crate) const MPRIS2_PATH: &str = "/org/mpris/MediaPlayer2";

/// When D-Bus connection is managed for you, use this timeout while communicating with a Player.
pub const DEFAULT_TIMEOUT_MS: i32 = 500; // ms
pub(crate) const DEFAULT_TIMEOUT_MS: i32 = 500; // ms

/// A MPRIS-compatible player.
///
Expand Down

0 comments on commit 1bad1eb

Please sign in to comment.