Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions include/common/bitdepth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ pub trait BitDepth: Clone + Copy {
Self::Pixel::mut_slice_from(bytes).unwrap()
}

fn cast_coef_slice(bytes: &[u8]) -> &[Self::Coef] {
fn _cast_coef_slice(bytes: &[u8]) -> &[Self::Coef] {
Self::Coef::slice_from(bytes).unwrap()
}

Expand All @@ -261,7 +261,7 @@ pub trait BitDepth: Clone + Copy {
T::T<BitDepth8>: Copy,
T::T<BitDepth16>: Copy;

unsafe fn select_into<T>(bd: BitDepthUnion<T>) -> T::T<Self>
unsafe fn _select_into<T>(bd: BitDepthUnion<T>) -> T::T<Self>
where
T: BitDepthDependentType,
T::T<BitDepth8>: Copy,
Expand Down Expand Up @@ -337,7 +337,7 @@ impl BitDepth for BitDepth8 {
&mut bd.bpc8
}

unsafe fn select_into<T>(bd: BitDepthUnion<T>) -> T::T<Self>
unsafe fn _select_into<T>(bd: BitDepthUnion<T>) -> T::T<Self>
where
T: BitDepthDependentType,
T::T<BitDepth8>: Copy,
Expand Down Expand Up @@ -418,7 +418,7 @@ impl BitDepth for BitDepth16 {
&mut bd.bpc16
}

unsafe fn select_into<T>(bd: BitDepthUnion<T>) -> T::T<Self>
unsafe fn _select_into<T>(bd: BitDepthUnion<T>) -> T::T<Self>
where
T: BitDepthDependentType,
T::T<BitDepth8>: Copy,
Expand Down
2 changes: 1 addition & 1 deletion lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#![allow(non_snake_case)]
#![allow(non_upper_case_globals)]
#![feature(c_variadic)]
#![cfg_attr(target_arch = "arm", feature(stdsimd))]
#![cfg_attr(target_arch = "arm", feature(stdarch_arm_feature_detection))]
#![allow(clippy::all)]

#[cfg(not(any(feature = "bitdepth_8", feature = "bitdepth_16")))]
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[toolchain]
channel = "nightly-2023-11-16"
channel = "nightly-2024-04-01"
targets = [
"x86_64-unknown-linux-gnu",
"i686-unknown-linux-gnu",
Expand Down
4 changes: 1 addition & 3 deletions src/log.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use std::ffi::c_char;
use std::ffi::c_uint;
use std::ffi::c_void;
use std::ffi::CStr;
use std::fmt;
use std::fmt::Write as _;
use std::io::stderr;
Expand Down Expand Up @@ -47,8 +46,7 @@ impl fmt::Write for Dav1dLogger {
// so it's easiest just to print one byte at a time.
// This may be slow, but logging can be disabled if it's slow,
// or the Rust API can be used instead.
// TODO(kkysen) Replace with `c"%c"` once its stabilization reaches stable.
let fmt = CStr::from_bytes_with_nul(b"%c\0").unwrap();
let fmt = c"%c";
for &byte in s.as_bytes() {
// # Safety
//
Expand Down