use crate::resolution::rust::edition::CargoEdition;
use crate::resolution::rust::target::RustTarget;
pub(in crate::resolution::rust::snapshot) struct ClosureEntry<'a> {
pub(in crate::resolution::rust::snapshot) target_name: &'a str,
pub(in crate::resolution::rust::snapshot) entry_path: &'a str,
pub(in crate::resolution::rust::snapshot) edition: CargoEdition,
}
impl<'target> ClosureEntry<'target> {
pub(in crate::resolution::rust::snapshot) fn of_target(target: &'target RustTarget) -> Self {
Self {
target_name: target.name(),
entry_path: target.entry_path(),
edition: target.edition(),
}
}
}