Remove redundant as_slice() from conn.rs