···381381 pub fn directory() -> Self {
382382 Self {
383383 node: InMemoryFileNode::Directory,
384384- ..Default::default()
384384+ ..Self::default()
385385 }
386386 }
387387···418418impl Default for InMemoryFile {
419419 fn default() -> Self {
420420 Self {
421421- node: InMemoryFileNode::File(Default::default()),
421421+ node: InMemoryFileNode::File(Rc::new(RefCell::new(vec![]))),
422422 // We use a fixed time here so that the tests are deterministic. In
423423 // future we may want to inject this in some fashion.
424424 modification_time: SystemTime::UNIX_EPOCH + Duration::from_secs(663112800),
···19192020impl ModuleExtra {
2121 pub fn new() -> Self {
2222- Default::default()
2222+ Self::default()
2323 }
24242525 /// Detects if a byte index is in a comment context
···2828 /// No feedback at all.
2929 ///
3030 pub fn none() -> Feedback {
3131- Default::default()
3131+ Feedback::default()
3232 }
33333434 /// Add all the content of another feedback to this feedback.