From c739df3d78a81ea7943051a95702801eb3d219e9 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Sun, 15 Oct 2023 16:11:48 +0100 Subject: [PATCH] refactor(nix-compat/derivation): fix function name typo: write_enviroment -> write_environment. Change-Id: I1a2dc826c0bf71f6ba97fe41c4d44619b5e6beff Reviewed-on: https://cl.tvl.fyi/c/depot/+/9739 Autosubmit: flokli Reviewed-by: raitobezarius Tested-by: BuildkiteCI --- tvix/nix-compat/src/derivation/mod.rs | 2 +- tvix/nix-compat/src/derivation/write.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tvix/nix-compat/src/derivation/mod.rs b/tvix/nix-compat/src/derivation/mod.rs index 7a15f0ee0..a06f8eb16 100644 --- a/tvix/nix-compat/src/derivation/mod.rs +++ b/tvix/nix-compat/src/derivation/mod.rs @@ -70,7 +70,7 @@ impl Derivation { write_arguments(writer, &self.arguments)?; write_char(writer, COMMA)?; - write_enviroment(writer, &self.environment)?; + write_environment(writer, &self.environment)?; write_char(writer, PAREN_CLOSE)?; diff --git a/tvix/nix-compat/src/derivation/write.rs b/tvix/nix-compat/src/derivation/write.rs index 01e533ced..0655cb8cd 100644 --- a/tvix/nix-compat/src/derivation/write.rs +++ b/tvix/nix-compat/src/derivation/write.rs @@ -174,7 +174,7 @@ pub fn write_arguments(writer: &mut impl Write, arguments: &[String]) -> Result< Ok(()) } -pub fn write_enviroment(writer: &mut impl Write, environment: E) -> Result<(), io::Error> +pub fn write_environment(writer: &mut impl Write, environment: E) -> Result<(), io::Error> where E: IntoIterator, K: AsRef<[u8]>,