diff --git a/crates/ide-assists/src/handlers/generate_new.rs b/crates/ide-assists/src/handlers/generate_new.rs index 4182cc9ba27..d7b05a9ef94 100644 --- a/crates/ide-assists/src/handlers/generate_new.rs +++ b/crates/ide-assists/src/handlers/generate_new.rs @@ -9,7 +9,7 @@ use crate::{ }; // TODO: how to depupicate with `ide-diagnostics/mssing_fields` -pub fn use_trivial_constructor( +fn use_trivial_constructor( db: &ide_db::RootDatabase, path: ast::Path, ty: &hir::Type, diff --git a/crates/ide-diagnostics/src/handlers/missing_fields.rs b/crates/ide-diagnostics/src/handlers/missing_fields.rs index 5739a878538..67692676b44 100644 --- a/crates/ide-diagnostics/src/handlers/missing_fields.rs +++ b/crates/ide-diagnostics/src/handlers/missing_fields.rs @@ -18,7 +18,7 @@ use text_edit::TextEdit; use crate::{fix, Diagnostic, DiagnosticsContext}; // TODO: how to depupicate with `ide-assists/generate_new` -pub fn use_trivial_constructor( +fn use_trivial_constructor( db: &ide_db::RootDatabase, path: ast::Path, ty: &hir::Type,