chore: fix clippy
This commit is contained in:
parent
676f039230
commit
f295af1f3f
|
@ -33,7 +33,7 @@ impl MockProjectSkeleton {
|
|||
}
|
||||
|
||||
/// Represents a virtual project
|
||||
#[derive(Serialize)]
|
||||
#[derive(Serialize, Default)]
|
||||
pub struct MockProjectGenerator {
|
||||
/// how to name things
|
||||
#[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
|
||||
trait NamingStrategy {
|
||||
/// Return a new name for the given source file id
|
||||
|
|
Loading…
Reference in New Issue