Skip to content

Commit

Permalink
Create PowerRole enum
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertZ2011 committed Mar 5, 2025
1 parent 5c58a68 commit 6d2e3ab
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,14 @@ pub enum Error<BE> {
Pd(PdError),
}

/// Power role

Check warning on line 72 in src/lib.rs

View workflow job for this annotation

GitHub Actions / stable / clippy (5c58a68ed5607146b9f62ac8d93e8efbda1d4be2)

[clippy] reported by reviewdog 🐶 warning: allow(clippy::from_over_into) incompatible with previous forbid --> src/lib.rs:72:9 | 72 | #[allow(clippy::from_over_into)] | ^^^^^^^^^^^^^^^^^^^^^^ overruled by previous forbid | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = note: for more information, see issue #81670 <https://github.com/rust-lang/rust/issues/81670> = note: `forbid` lint level was set on command line = note: `#[warn(forbidden_lint_groups)]` on by default Raw Output: src/lib.rs:72:9:w:warning: allow(clippy::from_over_into) incompatible with previous forbid --> src/lib.rs:72:9 | 72 | #[allow(clippy::from_over_into)] | ^^^^^^^^^^^^^^^^^^^^^^ overruled by previous forbid | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = note: for more information, see issue #81670 <https://github.com/rust-lang/rust/issues/81670> = note: `forbid` lint level was set on command line = note: `#[warn(forbidden_lint_groups)]` on by default __END__

Check warning on line 72 in src/lib.rs

View workflow job for this annotation

GitHub Actions / beta / clippy (5c58a68ed5607146b9f62ac8d93e8efbda1d4be2)

[clippy] reported by reviewdog 🐶 warning: allow(clippy::from_over_into) incompatible with previous forbid --> src/lib.rs:72:9 | 72 | #[allow(clippy::from_over_into)] | ^^^^^^^^^^^^^^^^^^^^^^ overruled by previous forbid | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = note: for more information, see issue #81670 <https://github.com/rust-lang/rust/issues/81670> = note: `forbid` lint level was set on command line = note: `#[warn(forbidden_lint_groups)]` on by default Raw Output: src/lib.rs:72:9:w:warning: allow(clippy::from_over_into) incompatible with previous forbid --> src/lib.rs:72:9 | 72 | #[allow(clippy::from_over_into)] | ^^^^^^^^^^^^^^^^^^^^^^ overruled by previous forbid | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = note: for more information, see issue #81670 <https://github.com/rust-lang/rust/issues/81670> = note: `forbid` lint level was set on command line = note: `#[warn(forbidden_lint_groups)]` on by default __END__
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
pub enum PowerRole {
Sink,
Source,
}

Check warning on line 79 in src/lib.rs

View workflow job for this annotation

GitHub Actions / stable / clippy (5c58a68ed5607146b9f62ac8d93e8efbda1d4be2)

[clippy] reported by reviewdog 🐶 warning: allow(clippy::from_over_into) incompatible with previous forbid --> src/lib.rs:79:9 | 79 | #[allow(clippy::from_over_into)] | ^^^^^^^^^^^^^^^^^^^^^^ overruled by previous forbid | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = note: for more information, see issue #81670 <https://github.com/rust-lang/rust/issues/81670> = note: `forbid` lint level was set on command line Raw Output: src/lib.rs:79:9:w:warning: allow(clippy::from_over_into) incompatible with previous forbid --> src/lib.rs:79:9 | 79 | #[allow(clippy::from_over_into)] | ^^^^^^^^^^^^^^^^^^^^^^ overruled by previous forbid | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = note: for more information, see issue #81670 <https://github.com/rust-lang/rust/issues/81670> = note: `forbid` lint level was set on command line __END__

Check warning on line 79 in src/lib.rs

View workflow job for this annotation

GitHub Actions / beta / clippy (5c58a68ed5607146b9f62ac8d93e8efbda1d4be2)

[clippy] reported by reviewdog 🐶 warning: allow(clippy::from_over_into) incompatible with previous forbid --> src/lib.rs:79:9 | 79 | #[allow(clippy::from_over_into)] | ^^^^^^^^^^^^^^^^^^^^^^ overruled by previous forbid | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = note: for more information, see issue #81670 <https://github.com/rust-lang/rust/issues/81670> = note: `forbid` lint level was set on command line Raw Output: src/lib.rs:79:9:w:warning: allow(clippy::from_over_into) incompatible with previous forbid --> src/lib.rs:79:9 | 79 | #[allow(clippy::from_over_into)] | ^^^^^^^^^^^^^^^^^^^^^^ overruled by previous forbid | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = note: for more information, see issue #81670 <https://github.com/rust-lang/rust/issues/81670> = note: `forbid` lint level was set on command line __END__
#[allow(clippy::from_over_into)]
impl<T, BE> Into<Result<T, Error<BE>>> for PdError {
fn into(self) -> Result<T, Error<BE>> {
Expand Down

0 comments on commit 6d2e3ab

Please sign in to comment.