Skip to content

Commit

Permalink
Remove obsolete #[allow]
Browse files Browse the repository at this point in the history
  • Loading branch information
RReverser committed Aug 26, 2024
1 parent 3904ef4 commit e37ada7
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 15 deletions.
1 change: 0 additions & 1 deletion src/api/autogen/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,6 @@ ${stringifyIter(types, ({ features, type }) => {
${cfg}
#[derive(Debug, PartialEq, Eq, Clone, Copy, Serialize_repr, Deserialize_repr, TryFromPrimitive, IntoPrimitive)]
#[repr(${type.baseType})]
#[allow(clippy::default_numeric_fallback)] // false positive https://github.com/rust-lang/rust-clippy/issues/9656
#[allow(missing_docs)] // some enum variants might not have docs and that's okay
pub enum ${type.name} {
${stringifyIter(
Expand Down
2 changes: 0 additions & 2 deletions src/api/image_array/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ type ArcArray3<T> = ndarray::ArcArray<T, ndarray::Ix3>;
IntoPrimitive,
)]
#[repr(i32)]
#[allow(clippy::default_numeric_fallback)] // false positive https://github.com/rust-lang/rust-clippy/issues/9656
pub enum ImageArrayRank {
/// 2D
Rank2 = 2_i32,
Expand All @@ -39,7 +38,6 @@ pub enum ImageArrayRank {

#[derive(Debug, PartialEq, Eq, Clone, Copy, IntoPrimitive, TryFromPrimitive)]
#[repr(i32)]
#[allow(clippy::default_numeric_fallback)] // false positive https://github.com/rust-lang/rust-clippy/issues/9656
pub(crate) enum TransmissionElementType {
I16 = 1,
I32 = 2,
Expand Down
11 changes: 0 additions & 11 deletions src/api/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ pub use image_array::*;
IntoPrimitive,
)]
#[repr(i32)]
#[allow(clippy::default_numeric_fallback)] // false positive https://github.com/rust-lang/rust-clippy/issues/9656
#[allow(missing_docs)] // some enum variants might not have docs and that's okay
pub enum CameraState {
/// At idle state, available to start exposure.
Expand Down Expand Up @@ -176,7 +175,6 @@ impl LastExposureStartTime {
IntoPrimitive,
)]
#[repr(i32)]
#[allow(clippy::default_numeric_fallback)] // false positive https://github.com/rust-lang/rust-clippy/issues/9656
#[allow(missing_docs)] // some enum variants might not have docs and that's okay
pub enum SensorType {
/// Single-plane monochrome sensor.
Expand Down Expand Up @@ -212,7 +210,6 @@ pub enum SensorType {
IntoPrimitive,
)]
#[repr(i32)]
#[allow(clippy::default_numeric_fallback)] // false positive https://github.com/rust-lang/rust-clippy/issues/9656
#[allow(missing_docs)] // some enum variants might not have docs and that's okay
pub enum GuideDirection {
North = 0,
Expand All @@ -238,7 +235,6 @@ pub enum GuideDirection {
IntoPrimitive,
)]
#[repr(i32)]
#[allow(clippy::default_numeric_fallback)] // false positive https://github.com/rust-lang/rust-clippy/issues/9656
#[allow(missing_docs)] // some enum variants might not have docs and that's okay
pub enum CalibratorStatus {
/// This device does not have a calibration capability.
Expand Down Expand Up @@ -274,7 +270,6 @@ pub enum CalibratorStatus {
IntoPrimitive,
)]
#[repr(i32)]
#[allow(clippy::default_numeric_fallback)] // false positive https://github.com/rust-lang/rust-clippy/issues/9656
#[allow(missing_docs)] // some enum variants might not have docs and that's okay
pub enum CoverStatus {
/// This device does not have a cover that can be closed independently.
Expand Down Expand Up @@ -310,7 +305,6 @@ pub enum CoverStatus {
IntoPrimitive,
)]
#[repr(i32)]
#[allow(clippy::default_numeric_fallback)] // false positive https://github.com/rust-lang/rust-clippy/issues/9656
#[allow(missing_docs)] // some enum variants might not have docs and that's okay
pub enum ShutterState {
/// The shutter or roof is open.
Expand Down Expand Up @@ -343,7 +337,6 @@ pub enum ShutterState {
IntoPrimitive,
)]
#[repr(i32)]
#[allow(clippy::default_numeric_fallback)] // false positive https://github.com/rust-lang/rust-clippy/issues/9656
#[allow(missing_docs)] // some enum variants might not have docs and that's okay
pub enum AlignmentMode {
/// Altitude-Azimuth type mount.
Expand All @@ -370,7 +363,6 @@ pub enum AlignmentMode {
IntoPrimitive,
)]
#[repr(i32)]
#[allow(clippy::default_numeric_fallback)] // false positive https://github.com/rust-lang/rust-clippy/issues/9656
#[allow(missing_docs)] // some enum variants might not have docs and that's okay
pub enum EquatorialCoordinateType {
/// Custom or unknown equinox and/or reference frame.
Expand Down Expand Up @@ -403,7 +395,6 @@ pub enum EquatorialCoordinateType {
IntoPrimitive,
)]
#[repr(i32)]
#[allow(clippy::default_numeric_fallback)] // false positive https://github.com/rust-lang/rust-clippy/issues/9656
#[allow(missing_docs)] // some enum variants might not have docs and that's okay
pub enum PierSide {
/// Normal pointing state - Mount on the East side of pier (looking West).
Expand All @@ -430,7 +421,6 @@ pub enum PierSide {
IntoPrimitive,
)]
#[repr(i32)]
#[allow(clippy::default_numeric_fallback)] // false positive https://github.com/rust-lang/rust-clippy/issues/9656
#[allow(missing_docs)] // some enum variants might not have docs and that's okay
pub enum DriveRate {
/// Sidereal tracking rate (15.041 arcseconds per second).
Expand Down Expand Up @@ -522,7 +512,6 @@ impl TelescopeUtcdate {
IntoPrimitive,
)]
#[repr(i32)]
#[allow(clippy::default_numeric_fallback)] // false positive https://github.com/rust-lang/rust-clippy/issues/9656
#[allow(missing_docs)] // some enum variants might not have docs and that's okay
pub enum TelescopeAxis {
Primary = 0,
Expand Down
1 change: 0 additions & 1 deletion src/response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ impl<T> From<T> for ValueResponse<T> {

#[cfg(feature = "client")]
impl<T> ValueResponse<T> {
#[allow(clippy::missing_const_for_fn)] // https://github.com/rust-lang/rust-clippy/issues/9271
pub(crate) fn into(self) -> T {
self.value
}
Expand Down

0 comments on commit e37ada7

Please sign in to comment.