Skip to content

Commit 7f60101

Browse files
authored
Merge pull request #22375 from hvitved/rust/trap-compression-zstd-default
Rust: Use `zstd` compression for TRAP files by default
2 parents 3ed2370 + 29f91cc commit 7f60101

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

rust/codeql-extractor.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ options:
2525
title: Controls compression for the TRAP files written by the extractor.
2626
description: >
2727
This option is only intended for use in debugging the extractor. Accepted
28-
values are 'gzip' (to write gzip-compressed TRAP) 'zstd' (to write
29-
Zstandard-compressed TRAP) and 'none' (the default, to write uncompressed
28+
values are 'gzip' (to write gzip-compressed TRAP) 'zstd' (the default,
29+
to write Zstandard-compressed TRAP) and 'none' (to write uncompressed
3030
TRAP).
3131
type: string
3232
pattern: "^(none|gzip|zstd)$"

rust/extractor/src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ use std::path::{Path, PathBuf};
2828
#[serde(rename_all = "lowercase")]
2929
#[clap(rename_all = "lowercase")]
3030
pub enum Compression {
31-
#[default] // TODO make gzip default
3231
None,
3332
Gzip,
33+
#[default]
3434
Zstd,
3535
}
3636

0 commit comments

Comments
 (0)