logo

deblob

remove binary executables from a directory git clone https://hacktivis.me/git/deblob.git
commit: 5391197393762ac12557696c73b2bdb64cb9146b
parent 86a5bc7f68858657a0f399c58e487502bc7b04a7
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sun,  7 Aug 2022 11:19:43 +0200

Use const for list of headers and test cases

Diffstat:

Mmain.ha4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/main.ha b/main.ha @@ -14,7 +14,7 @@ use strings; let excludes: []str = []; let noop: bool = false; -let magic: [_][]u8 = [ +const magic: [_][]u8 = [ [0x7F, 'E', 'L', 'F'], // ELF ['!', '<', 'a', 'r', 'c', 'h', '>', '\n'], // Unix ar(1) [0x55, 0xAA], // IBM PC BIOS ROM @@ -44,7 +44,7 @@ fn is_blob(filename: str) (bool | fs::error | io::error) = { }; @test fn is_blob() void = { - let tests = [ + const tests = [ ("test/fixtures/hello.1", false), ("test/fixtures/hello.c", false), ("test/fixtures/hello", true),