mirror of https://github.com/fafhrd91/actix-web
clippy
This commit is contained in:
parent
2bc7102e37
commit
999c003aa8
|
@ -404,7 +404,7 @@ mod tests {
|
||||||
more_ext.insert(3usize);
|
more_ext.insert(3usize);
|
||||||
more_ext.insert(NonCopy { num: 8 });
|
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::<isize>(), Some(&3isize));
|
||||||
assert_eq!(ext.get::<usize>(), Some(&3usize));
|
assert_eq!(ext.get::<usize>(), Some(&3usize));
|
||||||
|
@ -419,7 +419,7 @@ mod tests {
|
||||||
fn boxes_not_aliased() {
|
fn boxes_not_aliased() {
|
||||||
let a: Box<dyn CloneAny> = Box::new(42);
|
let a: Box<dyn CloneAny> = Box::new(42);
|
||||||
let b = a.clone_to_clone_any();
|
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 a: Box<dyn CloneAny> = Box::new(42);
|
||||||
let b = a.clone_to_any();
|
let b = a.clone_to_any();
|
||||||
|
|
Loading…
Reference in New Issue