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 <flokli@flokli.de>
Reviewed-by: tazjin <tazjin@tvl.su>
Tested-by: BuildkiteCI
This commit is contained in:
Florian Klink 2023-02-03 12:57:15 +01:00 committed by clbot
parent f16b0f24e2
commit d50044d570

View file

@ -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)]