Skip to content

Commit

Permalink
Tidy up includes
Browse files Browse the repository at this point in the history
  • Loading branch information
bugdea1er committed Jan 28, 2024
1 parent 36cdc2d commit b8534e1
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 3 deletions.
1 change: 0 additions & 1 deletion include/tmp/directory.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

#include <filesystem>
#include <string_view>
#include <unistd.h>

namespace tmp {

Expand Down
2 changes: 1 addition & 1 deletion include/tmp/file.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#include <tmp/path.hpp>

#include <cstdlib>
#include <filesystem>
#include <fstream>
#include <string_view>

Expand Down
1 change: 0 additions & 1 deletion include/tmp/path.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#include <filesystem>
#include <string_view>
#include <system_error>
#include <utility>

namespace tmp {

Expand Down
2 changes: 2 additions & 0 deletions lib/directory.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#include <tmp/directory.hpp>

#include <unistd.h>

namespace tmp {

directory::directory(std::string_view prefix) : path(create(prefix)) {}
Expand Down
2 changes: 2 additions & 0 deletions lib/file.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#include <tmp/file.hpp>

#include <cstdlib>

namespace tmp {

file::file(std::string_view prefix) : file(prefix, /*binary=*/true) {
Expand Down
2 changes: 2 additions & 0 deletions lib/path.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#include <tmp/path.hpp>

#include <utility>

namespace tmp {

namespace {
Expand Down

0 comments on commit b8534e1

Please sign in to comment.