summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2017-07-14 00:05:13 +0200
committerEugen Wissner <belka@caraus.de>2017-07-14 00:05:13 +0200
commite6b91f70cb478ff17778dab00c2115a4d8e90cb8 (patch)
tree14df3b9eed1ed83b4d112280f02eecc6cca55d18 /source
parent657f4a60d51766b7474d588d16918b7cba8dee00 (diff)
downloadtanya-e6b91f70cb478ff17778dab00c2115a4d8e90cb8.tar.gz
Add style checking
A lot of tests are disabled. They should be enabled successively.
Diffstat (limited to 'source')
-rw-r--r--source/tanya/async/event/iocp.d4
-rw-r--r--source/tanya/container/list.d4
-rw-r--r--source/tanya/format/conv.d2
3 files changed, 5 insertions, 5 deletions
diff --git a/source/tanya/async/event/iocp.d b/source/tanya/async/event/iocp.d
index 97f5459..eaf647b 100644
--- a/source/tanya/async/event/iocp.d
+++ b/source/tanya/async/event/iocp.d
@@ -231,8 +231,8 @@ final class IOCPLoop : Loop
return false;
}
}
- if (!(oldEvents & Event.read) && (events & Event.read)
- || !(oldEvents & Event.write) && (events & Event.write))
+ if ((!(oldEvents & Event.read) && (events & Event.read))
+ || (!(oldEvents & Event.write) && (events & Event.write)))
{
auto transport = cast(StreamTransport) watcher;
assert(transport !is null);
diff --git a/source/tanya/container/list.d b/source/tanya/container/list.d
index 4800a76..c917b67 100644
--- a/source/tanya/container/list.d
+++ b/source/tanya/container/list.d
@@ -1312,8 +1312,8 @@ struct DList(T)
private size_t makeList(R)(ref R el, out Entry* head, out Entry* tail) @trusted
out (retLength)
{
- assert(retLength == 0 && head is null && tail is null
- || retLength > 0 && head !is null && tail !is null);
+ assert((retLength == 0 && head is null && tail is null)
+ || (retLength > 0 && head !is null && tail !is null));
}
body
{
diff --git a/source/tanya/format/conv.d b/source/tanya/format/conv.d
index d069e38..fc33355 100644
--- a/source/tanya/format/conv.d
+++ b/source/tanya/format/conv.d
@@ -61,7 +61,7 @@ template to(To)
/// Ditto.
To to(From)(From from)
- if (is(Unqual!To == Unqual!From) || isNumeric!From && isFloatingPoint!To)
+ if (is(Unqual!To == Unqual!From) || (isNumeric!From && isFloatingPoint!To))
{
return from;
}