From d50044d57052abaa2005ea8d8544a0518b798e4b Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Fri, 3 Feb 2023 12:57:15 +0100 Subject: chore(tvix/eval): only use Rc with impure feature We only use Rc in `impl EvalIO for StdIO`, which is only included when building with the "impure" feature. Change-Id: Id29d647c899cbfcdda11abfb9fabd5aa7e24299f Reviewed-on: https://cl.tvl.fyi/c/depot/+/8025 Autosubmit: flokli Reviewed-by: tazjin Tested-by: BuildkiteCI --- tvix/eval/src/io.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tvix/eval/src/io.rs b/tvix/eval/src/io.rs index d20912f21f..8268b5990d 100644 --- a/tvix/eval/src/io.rs +++ b/tvix/eval/src/io.rs @@ -15,11 +15,12 @@ //! In the context of Nix builds, callers also use this interface to determine //! how store paths are opened and so on. +use crate::errors::ErrorKind; use smol_str::SmolStr; use std::path::{Path, PathBuf}; -use std::rc::Rc; -use crate::errors::ErrorKind; +#[cfg(feature = "impure")] +use std::rc::Rc; /// Types of files as represented by `builtins.readDir` in Nix. #[derive(Debug)] -- cgit 1.4.1