B11: drop doc comment on sample_at (no-comments rule)
Browse files at this commita0267da82d6ed936d9476ac51f2205d4c677e660Parent: 4aa9f941 changed file +0 -1
crates/ec-alac/src/encode.rsmodified+0 -1
| @@ -453,7 +453,6 @@ fn plan_of(c: Candidate) -> ChannelPlan { | |||
| 453 | } | 453 | } |
| 454 | } | 454 | } |
| 455 | 455 | ||
| 456 | -/// The sample at byte offset `at` of one plane, or `None` past its end. | ||
| 457 | fn sample_at(plane: &[u8], at: usize, format: SampleFormat) -> Option<i32> { | 456 | fn sample_at(plane: &[u8], at: usize, format: SampleFormat) -> Option<i32> { |
| 458 | match format { | 457 | match format { |
| 459 | SampleFormat::S16 => Some(i32::from(i16::from_ne_bytes(plane.get(at..at + 2)?.try_into().ok()?))), | 458 | SampleFormat::S16 => Some(i32::from(i16::from_ne_bytes(plane.get(at..at + 2)?.try_into().ok()?))), |