Skip to content

Commit

Permalink
Clean imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton Fediushin committed Aug 2, 2017
1 parent 126774f commit 9b96fbc
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions source/covered/loader.d
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
module covered.loader;

import std.array : array;
import std.algorithm : map, each, filter, canFind, until, find, stripLeft;
import std.conv : to;
import std.range : drop, tee, isInputRange, ElementType;
import std.regex : matchFirst, regex;
import std.stdio : File;
import std.typecons : Tuple, tuple;
version(unittest) import fluent.asserts;

auto openFilesAndDirs(string[] files, string[] dirs) {
import std.algorithm : joiner;
import std.algorithm : map, filter, joiner;
import std.file : exists, dirEntries, SpanMode;
import std.range : chain;
return files
Expand Down Expand Up @@ -91,6 +85,8 @@ struct CoverageLoader {
}

float getCoverage() {
import std.conv : to;

if(!m_stats_available)
this.getCoveredAndTotalLines();

Expand All @@ -108,6 +104,7 @@ struct CoverageLoader {
string getSourceFile() {
if(!m_sourcefile.length) {
import std.algorithm : canFind;
import std.regex : matchFirst, regex;

m_file.seek(0);
m_buffer.reserve(4096);
Expand Down

0 comments on commit 9b96fbc

Please sign in to comment.