chore: fix clippy
This commit is contained in:
parent
676f039230
commit
f295af1f3f
|
@ -33,7 +33,7 @@ impl MockProjectSkeleton {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Represents a virtual project
|
/// Represents a virtual project
|
||||||
#[derive(Serialize)]
|
#[derive(Serialize, Default)]
|
||||||
pub struct MockProjectGenerator {
|
pub struct MockProjectGenerator {
|
||||||
/// how to name things
|
/// how to name things
|
||||||
#[serde(skip)]
|
#[serde(skip)]
|
||||||
|
@ -368,12 +368,6 @@ impl From<MockProjectSkeleton> for MockProjectGenerator {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Default for MockProjectGenerator {
|
|
||||||
fn default() -> Self {
|
|
||||||
Self { name_strategy: Box::new(SimpleNamingStrategy::default()), inner: Default::default() }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Used to determine the names for elements
|
/// Used to determine the names for elements
|
||||||
trait NamingStrategy {
|
trait NamingStrategy {
|
||||||
/// Return a new name for the given source file id
|
/// Return a new name for the given source file id
|
||||||
|
|
Loading…
Reference in New Issue