From b0d6e748acbdfb914bfe53c1c91345a408cc8726 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Mon, 23 Jan 2023 14:46:40 +0100 Subject: refactor(tvix/derivation): remove DOT_FILE_EXT const This is used in few enough places to just inline it. It felt a bit alien in the ATerm construction aswell. write.rs now pleasantly only includes tokens that occur in the ATerm representation. Change-Id: I524f8d6c1ce9057ff7fd16c6c3efd98467040a44 Reviewed-on: https://cl.tvl.fyi/c/depot/+/7911 Reviewed-by: tazjin Tested-by: BuildkiteCI --- tvix/derivation/src/write.rs | 2 -- 1 file changed, 2 deletions(-) (limited to 'tvix/derivation/src/write.rs') diff --git a/tvix/derivation/src/write.rs b/tvix/derivation/src/write.rs index 0f53281567cb..fd8800abd82c 100644 --- a/tvix/derivation/src/write.rs +++ b/tvix/derivation/src/write.rs @@ -16,8 +16,6 @@ pub const BRACKET_CLOSE: char = ']'; pub const COMMA: char = ','; pub const QUOTE: char = '"'; -pub const DOT_FILE_EXT: &str = ".drv"; - fn write_array_elements( writer: &mut impl Write, quote: bool, -- cgit 1.4.1