Fixed all unnecessary muts in language core
This commit is contained in:
parent
35b9bd0559
commit
400075d9d9
32 changed files with 41 additions and 41 deletions
|
@ -188,7 +188,7 @@ impl<'a> AllocFnFactory<'a> {
|
|||
fn arg_ty(&self,
|
||||
ty: &AllocatorTy,
|
||||
args: &mut Vec<Arg>,
|
||||
mut ident: &mut FnMut() -> Ident) -> P<Expr> {
|
||||
ident: &mut FnMut() -> Ident) -> P<Expr> {
|
||||
match *ty {
|
||||
AllocatorTy::Layout => {
|
||||
let usize = self.cx.path_ident(self.span, Ident::from_str("usize"));
|
||||
|
@ -263,7 +263,7 @@ impl<'a> AllocFnFactory<'a> {
|
|||
fn ret_ty(&self,
|
||||
ty: &AllocatorTy,
|
||||
args: &mut Vec<Arg>,
|
||||
mut ident: &mut FnMut() -> Ident,
|
||||
ident: &mut FnMut() -> Ident,
|
||||
expr: P<Expr>) -> (P<Ty>, P<Expr>)
|
||||
{
|
||||
match *ty {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue