From 21394b3bd9ae209e3a3ac97aca6848284d19c980 Mon Sep 17 00:00:00 2001 From: Robert Georges Date: Fri, 16 Aug 2019 16:12:04 +0200 Subject: [PATCH] Adding alias for import and replacing deprecated delete keyword for destroy --- src/libssh/channel.d | 4 ++-- src/libssh/threading.d | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libssh/channel.d b/src/libssh/channel.d index 1c72444..2db755f 100644 --- a/src/libssh/channel.d +++ b/src/libssh/channel.d @@ -2,7 +2,6 @@ import core.time; import std.algorithm.searching; -import std.algorithm.mutation; import libssh.c_bindings.libssh; import libssh.c_bindings.server; @@ -23,7 +22,8 @@ class SSHChannelSet { } void remove(SSHChannel channel) { - this._channels = std.algorithm.mutation.remove!(a => a == channel)(this._channels); + import mutation = std.algorithm.mutation; + this._channels = mutation.remove!(a => a == channel)(this._channels); } bool isSet(SSHChannel channel) { diff --git a/src/libssh/threading.d b/src/libssh/threading.d index 118405a..8a50eb2 100644 --- a/src/libssh/threading.d +++ b/src/libssh/threading.d @@ -58,7 +58,7 @@ private { _mutexes = remove!(a => a == mutex)(_mutexes); } - delete mutex; + destroy(mutex); *lock = null; return 0;