Update tests

This commit is contained in:
r0cky
2024-02-07 10:42:01 +08:00
parent 40878ca6ea
commit c7519d42c2
276 changed files with 1049 additions and 234 deletions

View File

@@ -59,12 +59,14 @@ cfg_if::cfg_if! {
/// A trait for viewing representations from std types
#[doc(hidden)]
#[allow(dead_code)] // not used on all platforms
pub trait AsInner<Inner: ?Sized> {
fn as_inner(&self) -> &Inner;
}
/// A trait for viewing representations from std types
#[doc(hidden)]
#[allow(dead_code)] // not used on all platforms
pub trait AsInnerMut<Inner: ?Sized> {
fn as_inner_mut(&mut self) -> &mut Inner;
}