# std.hash.crc: get rid of usingnamespace · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/271d8964468529a1c67b3b1c6a4dd69693e98500)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 271d8964468529a1c67b3b1c6a4dd69693e98500

Requested commit: 271d8964468529a1c67b3b1c6a4dd69693e98500

Commit: 271d8964468529a1c67b3b1c6a4dd69693e98500

Tree: 401a41299c3b664675c15b6f566153f05d3cc64a

Author: Brandon Black

Committer: Andrew Kelley

## Message

```
std.hash.crc: get rid of usingnamespace

This flips things around such that std/hash/crc.zig is generated
by the catalog-based generation tool, and the real code that used
to be in that file is moved out to std/hash/crc/impl.zig.  The
generated tests are moved to std/hash/crc/test.zig.  By going this
route, we eliminate the need for usingnamespace without changing
anything for callers of these interfaces.  The Crc32 tests are
simply added to the fixed part of the generated output and
compactified a bit.

This was the second-to-last usage of usingnamespace left in std.

```

## Parents

- [786876c05efc55ecc9c9c05e89f754f813860436](https://git.cafe/gitcafe/zig/commit/786876c05efc55ecc9c9c05e89f754f813860436?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/271d8964468529a1c67b3b1c6a4dd69693e98500?format=markdown)
