Skip to content

Commit db9b2b2

Browse files
committed
prepare to phobos pr Add scope decorations to std.socket #8438
1 parent 80cef92 commit db9b2b2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/requests/streams.d

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -898,17 +898,17 @@ else {
898898
return this;
899899
}
900900
@trusted
901-
override ptrdiff_t send(const(void)[] buf, SocketFlags flags) scope {
901+
override ptrdiff_t send(scope const(void)[] buf, SocketFlags flags) scope {
902902
return openssl.SSL_write(ssl, buf.ptr, cast(uint) buf.length);
903903
}
904-
override ptrdiff_t send(const(void)[] buf) scope {
904+
override ptrdiff_t send(scope const(void)[] buf) scope {
905905
return send(buf, SocketFlags.NONE);
906906
}
907907
@trusted
908908
override ptrdiff_t receive(void[] buf, SocketFlags flags) scope {
909909
return openssl.SSL_read(ssl, buf.ptr, cast(int)buf.length);
910910
}
911-
override ptrdiff_t receive(void[] buf) scope {
911+
override ptrdiff_t receive(scope void[] buf) scope {
912912
return receive(buf, SocketFlags.NONE);
913913
}
914914
this(AddressFamily af, SocketType type = SocketType.STREAM, SSLOptions opts = SSLOptions()) {

0 commit comments

Comments
 (0)