Skip to content

Commit

Permalink
Make ra const fn (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
ldm0 authored Apr 4, 2024
1 parent 5f20711 commit cfeb1e4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/avutil/rational.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ use crate::ffi;

pub use ffi::AVRational;

#[inline]
/// return `AVRational: num / den`;
pub fn ra(num: i32, den: i32) -> AVRational {
pub const fn ra(num: i32, den: i32) -> AVRational {
AVRational { num, den }
}

Expand Down

0 comments on commit cfeb1e4

Please sign in to comment.