mirror of
https://github.com/vlang/v.git
synced 2025-09-14 23:12:33 +03:00
v: remove the automatic passing of structs with more than 8 fields by reference (related #17159) (#22547)
This commit is contained in:
parent
5f413f48f8
commit
e97036a25b
45 changed files with 146 additions and 175 deletions
|
@ -239,7 +239,7 @@ pub fn (mut s Server) set_state(state State) {
|
|||
}
|
||||
|
||||
// get_state return current state in a thread safe way
|
||||
pub fn (s Server) get_state() State {
|
||||
pub fn (s &Server) get_state() State {
|
||||
return rlock s.server_state {
|
||||
s.server_state.state
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue