fmt: remove parenthesis around single ident (#9696)

This commit is contained in:
Lukas Neubert 2021-04-12 15:01:03 +02:00 committed by GitHub
parent 9427c5f526
commit ada763e0f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 26 additions and 15 deletions

View file

@ -270,7 +270,7 @@ pub fn (mut a array) pop() voidptr {
}
}
new_len := a.len - 1
last_elem := unsafe { &byte(a.data) + (new_len) * a.element_size }
last_elem := unsafe { &byte(a.data) + new_len * a.element_size }
a.len = new_len
// NB: a.cap is not changed here *on purpose*, so that
// further << ops on that array will be more efficient.