fix manganis assets overlapping between examples

This commit is contained in:
Evan Almloff committed 2024-03-11 17:11:52 -05:00
1 parent 44d09fcd2d
commit 6b84f284c9
8 files changed
+96 -109

No files matched your search

+10
View File
@@ -370,6 +370,16 @@ pub enum ExecutableType {
Example(String),
}
impl ExecutableType {
/// Get the name of the executable if it is a binary or an example.
pub fn executable(&self) -> Option<&str> {
match self {
Self::Binary(bin) | Self::Example(bin) => Some(bin),
_ => None,
}
}
}
impl CrateConfig {
#[cfg(feature = "cli")]
pub fn new(bin: Option<PathBuf>) -> Result<Self, CrateConfigError> {