diff options
author | Florian Klink <flokli@flokli.de> | 2023-02-03T11·57+0100 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2023-02-03T18·58+0000 |
commit | d50044d57052abaa2005ea8d8544a0518b798e4b (patch) | |
tree | 8062e053c4bd7751adc652db3357d192f0f76716 /tvix/eval/src/io.rs | |
parent | f16b0f24e2f7c360b1daf7ae7b8e3341907faf76 (diff) |
chore(tvix/eval): only use Rc with impure feature r/5833
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 <flokli@flokli.de> Reviewed-by: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI
Diffstat (limited to 'tvix/eval/src/io.rs')
-rw-r--r-- | tvix/eval/src/io.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tvix/eval/src/io.rs b/tvix/eval/src/io.rs index d20912f21f61..8268b5990d57 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)] |