Skip to content

Commit

Permalink
more bad code
Browse files Browse the repository at this point in the history
  • Loading branch information
fishrockz committed Dec 20, 2024
1 parent 39d818d commit 465e942
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libcamera/src/control_value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use libcamera_sys::*;
use smallvec::{smallvec, SmallVec};
use thiserror::Error;

use crate::geometry::{Rectangle, Size};
use crate::geometry::{Point, Rectangle, Size};

#[derive(Error, Debug)]
pub enum ControlValueError {
Expand Down Expand Up @@ -35,7 +35,7 @@ pub enum ControlValue {
Rectangle(SmallVec<[Rectangle; 1]>),
Size(SmallVec<[Size; 1]>),
// bad gues
Point(SmallVec<[i32; 2]>),
Point(SmallVec<[Point; 1]>),
}

macro_rules! impl_control_value {
Expand Down Expand Up @@ -112,6 +112,7 @@ impl_control_value_vec!(ControlValue::Int64, i64);
impl_control_value_vec!(ControlValue::Float, f32);
impl_control_value_vec!(ControlValue::Rectangle, Rectangle);
impl_control_value_vec!(ControlValue::Size, Size);
impl_control_value_vec!(ControlValue::Point, Point);

macro_rules! impl_control_value_array {
($p:path, $type:ty) => {
Expand Down

0 comments on commit 465e942

Please sign in to comment.