From b4a1733fd23530e10545ea999557fa3b5e45c25b Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Sun, 1 Dec 2013 10:18:47 -0500 Subject: remove useless `transmute_immut` function --- src/libextra/arc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libextra') diff --git a/src/libextra/arc.rs b/src/libextra/arc.rs index 770aa6432cf..d4fa7252f77 100644 --- a/src/libextra/arc.rs +++ b/src/libextra/arc.rs @@ -485,7 +485,7 @@ impl RWArc { // Whatever region the input reference had, it will be safe to use // the same region for the output reference. (The only 'unsafe' part // of this cast is removing the mutability.) - let new_data = cast::transmute_immut(data); + let new_data = data; // Downgrade ensured the token belonged to us. Just a sanity check. assert!(borrow::ref_eq(&(*state).data, new_data)); // Produce new token -- cgit 1.4.1-3-g733a5