Skip to content

Commit

Permalink
Remove unneeded Sealed trait.
Browse files Browse the repository at this point in the history
  • Loading branch information
reitermarkus committed Jan 30, 2024
1 parent bd95c9c commit d796952
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/channel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ pub trait ChannelId<T> {
macro_rules! impl_channels {
($(#[doc = $doc:expr] $CH:ident => [$($IC:ident),+]),+ $(,)?) => {
mod private {
pub trait Sealed {}

#[derive(Debug, Clone, Copy)]
/// ADC input channel selection.
pub enum ChannelSelection {
Expand All @@ -28,8 +26,6 @@ macro_rules! impl_channels {
#[doc = $doc]
pub struct $CH;

impl private::Sealed for $CH {}

$(
impl<I2C, CONV, MODE> ChannelId<Ads1x1x<I2C, ic::$IC, CONV, MODE>> for $CH {
fn channel_id() -> ChannelSelection {
Expand Down

0 comments on commit d796952

Please sign in to comment.