fix import paths

This commit is contained in:
nora 2022-04-06 14:08:32 +02:00
parent 52e9951ba4
commit 85fff5f090
2 changed files with 5 additions and 2 deletions

View file

@ -1,5 +1,3 @@
use core::mem;
use sptr::Strict;
/// A backend where the stuffed pointer is stored. Must be bigger or equal to the pointer size.
@ -38,6 +36,9 @@ pub unsafe trait Backend<T> {
#[cfg(test)] // todo: this mustn't affect the msrv, fix this later
mod backend_size_asserts {
use core::mem;
use super::Backend;
#[allow(dead_code)] // :/
const fn assert_same_size<A, B>() {

View file

@ -29,6 +29,7 @@
//! for more details.
//! ```
//! use std::collections::HashMap;
//! # use std::convert::{TryFrom, TryInto};
//!
//! use stuff::{StuffedPtr, StuffingStrategy};
//!
@ -90,6 +91,7 @@ mod backend;
mod strategy;
use core::{
convert::TryFrom,
fmt::{Debug, Formatter},
hash::{Hash, Hasher},
marker::PhantomData,