mirror of
https://github.com/Noratrieb/stuff.git
synced 2026-01-14 16:35:08 +01:00
fix import paths
This commit is contained in:
parent
52e9951ba4
commit
85fff5f090
2 changed files with 5 additions and 2 deletions
|
|
@ -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>() {
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue