Remove 'using std::error_code' from tools.