1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-06-02 13:29:24 +00:00
This commit is contained in:
Rob Ede 2021-07-14 23:54:55 +01:00
parent 2bc7102e37
commit 999c003aa8
No known key found for this signature in database
GPG key ID: 97C636207D3EF933

View file

@ -404,7 +404,7 @@ mod tests {
more_ext.insert(3usize);
more_ext.insert(NonCopy { num: 8 });
ext.clone_from(&mut more_ext);
ext.clone_from(&more_ext);
assert_eq!(ext.get::<isize>(), Some(&3isize));
assert_eq!(ext.get::<usize>(), Some(&3usize));
@ -419,7 +419,7 @@ mod tests {
fn boxes_not_aliased() {
let a: Box<dyn CloneAny> = Box::new(42);
let b = a.clone_to_clone_any();
assert_ne!(Box::into_raw(a), Box::into_raw(b));
assert_ne!(Box::into_raw(a) as *const (), Box::into_raw(b) as *const ());
let a: Box<dyn CloneAny> = Box::new(42);
let b = a.clone_to_any();