mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
checker: obey [ref_only] tag, allow embedding in other ref struct (#8707)
This commit is contained in:
@@ -35,8 +35,8 @@ pub struct SSEMessage {
|
||||
retry int
|
||||
}
|
||||
|
||||
pub fn new_connection(conn &net.TcpConn) SSEConnection {
|
||||
return SSEConnection{
|
||||
pub fn new_connection(conn &net.TcpConn) &SSEConnection {
|
||||
return &SSEConnection{
|
||||
conn: conn
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user