Add style checking
A lot of tests are disabled. They should be enabled successively.
This commit is contained in:
@ -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);
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user