提交 9860fe10 编写于 作者: H Huon Wilson

libcore: remove unnecessary deref

上级 4a24f10a
......@@ -698,7 +698,7 @@ fn next(&self) -> u32 { (*self).next() }
* generator.
*/
pub fn random<T: Rand>() -> T {
(*task_rng()).gen()
task_rng().gen()
}
#[cfg(test)]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册