Unnamed repository; edit this file 'description' to name the repository.
add doc strings to use_trivial_contructor.rs
soruh 2022-06-22
parent f9379df · commit 817082c
-rw-r--r--crates/ide-db/src/use_trivial_contructor.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/crates/ide-db/src/use_trivial_contructor.rs b/crates/ide-db/src/use_trivial_contructor.rs
index 948670380f..39431bed38 100644
--- a/crates/ide-db/src/use_trivial_contructor.rs
+++ b/crates/ide-db/src/use_trivial_contructor.rs
@@ -1,6 +1,9 @@
+//! Functionality for generating trivial contructors
+
use hir::StructKind;
use syntax::ast;
+/// given a type return the trivial contructor (if one exists)
pub fn use_trivial_constructor(
db: &crate::RootDatabase,
path: ast::Path,