From 2894f06a805f5bd07787167a0aeddd7dad5efc12 Mon Sep 17 00:00:00 2001 From: Steven Schveighoffer Date: Thu, 19 Jan 2023 23:45:56 -0500 Subject: [PATCH] Fix socket scope issues (preparing for dip1000) --- source/mysql/protocol/sockets.d | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/mysql/protocol/sockets.d b/source/mysql/protocol/sockets.d index a9b2468d..a582fc93 100644 --- a/source/mysql/protocol/sockets.d +++ b/source/mysql/protocol/sockets.d @@ -40,7 +40,7 @@ interface MySQLSocket void close(); @property bool connected() const; void read(ubyte[] dst); - void write(in ubyte[] bytes); + void write(const scope ubyte[] bytes); void acquire(); void release(); @@ -93,7 +93,7 @@ class MySQLSocketPhobos : MySQLSocket } } - void write(in ubyte[] bytes) + void write(const scope ubyte[] bytes) { socket.send(bytes); } @@ -143,7 +143,7 @@ version(Have_vibe_core) { socket.read(dst); } - void write(in ubyte[] bytes) + void write(const scope ubyte[] bytes) { socket.write(bytes); }