fix manganis assets overlapping between examples
This commit is contained in:
1 parent
44d09fcd2d
commit
6b84f284c9
8 files changed
+96
-109
No files matched your search
@@ -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> {
|
||||
|
||||
Reference in new issue
Block a user