From 1c3ea9d83d2a6d502f4e910ac1498c5bb0ffc171 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Thu, 21 Dec 2023 17:20:10 +0200 Subject: docs(nix-compat/drvfmt): fix reference Change-Id: Ic0403e028cc968bef4023ef78dbfa0d502da90b0 Reviewed-on: https://cl.tvl.fyi/c/depot/+/10396 Reviewed-by: edef Autosubmit: flokli Tested-by: BuildkiteCI --- tvix/nix-compat/src/bin/drvfmt.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tvix/nix-compat') diff --git a/tvix/nix-compat/src/bin/drvfmt.rs b/tvix/nix-compat/src/bin/drvfmt.rs index b82e8d5158..ddc1f0389f 100644 --- a/tvix/nix-compat/src/bin/drvfmt.rs +++ b/tvix/nix-compat/src/bin/drvfmt.rs @@ -7,8 +7,9 @@ use serde_json::json; /// Some environment values can be non-valid UTF-8 strings. /// `serde_json` prints them out really unreadable. /// This is a tool to print A-Terms in a more readable fashion, so we brutally -/// use [BString::to_string] to get a UTF-8 string (replacing invalid characters -/// with the Unicode replacement codepoint). +/// use the [std::string::ToString] implementation of [bstr::BString] to get +/// a UTF-8 string (replacing invalid characters with the Unicode replacement +/// codepoint). fn build_serde_json_value(drv: Derivation) -> serde_json::Value { json!({ "args": drv.arguments, -- cgit 1.4.1