Skip to content

Commit 2894f06

Browse files
committed
Fix socket scope issues (preparing for dip1000)
1 parent d14f6a7 commit 2894f06

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/mysql/protocol/sockets.d

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ interface MySQLSocket
4040
void close();
4141
@property bool connected() const;
4242
void read(ubyte[] dst);
43-
void write(in ubyte[] bytes);
43+
void write(const scope ubyte[] bytes);
4444

4545
void acquire();
4646
void release();
@@ -93,7 +93,7 @@ class MySQLSocketPhobos : MySQLSocket
9393
}
9494
}
9595

96-
void write(in ubyte[] bytes)
96+
void write(const scope ubyte[] bytes)
9797
{
9898
socket.send(bytes);
9999
}
@@ -143,7 +143,7 @@ version(Have_vibe_core) {
143143
socket.read(dst);
144144
}
145145

146-
void write(in ubyte[] bytes)
146+
void write(const scope ubyte[] bytes)
147147
{
148148
socket.write(bytes);
149149
}

0 commit comments

Comments
 (0)