Skip to content

Commit

Permalink
Merge pull request #22 from thaven/use-newest-dmd
Browse files Browse the repository at this point in the history
Solve deprecations and use new dmd in travis build
  • Loading branch information
thaven authored Oct 17, 2020
2 parents c67f396 + 2d80694 commit 7aaea40
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ language: d

matrix:
include:
- d: dmd-2.087.1
- d: dmd-2.094.0
script:
- dub test -b unittest-cov
- dub build -b ddox
Expand Down
2 changes: 1 addition & 1 deletion source/oauth/exception.d
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class OAuthException : Exception
{
assert("error" in errorResponse);
}
body
do
{
_err_rfc6749 = errorResponse["error"].get!string;

Expand Down
2 changes: 1 addition & 1 deletion source/oauth/session.d
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ class OAuthSession
assert(this.token);
assert(this.expires > Clock.currTime);
}
body
do
{
import vibe.http.client : requestHTTP, HTTPClientResponse;

Expand Down
6 changes: 3 additions & 3 deletions source/oauth/settings.d
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ class OAuthSettings
{
assert(result !is null);
}
body
do
{
enforce(httpSession.isKeySet("oauth.authorization"),
"No call to userAuthUri was made using this HTTP session.");
Expand Down Expand Up @@ -387,7 +387,7 @@ class OAuthSettings
{
assert(result !is null);
}
body
do
{
string[string] params;
params["grant_type"] = "password";
Expand Down Expand Up @@ -417,7 +417,7 @@ class OAuthSettings
{
assert(result !is null);
}
body
do
{
string[string] params;
params["grant_type"] = "client_credentials";
Expand Down
2 changes: 1 addition & 1 deletion source/oauth/webapp.d
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ class OAuthWebapp
catch (Exception)
assert(false);
}
body
do
{
try
if (auto pCM = "oauth.session" in req.context)
Expand Down

0 comments on commit 7aaea40

Please sign in to comment.