add doc strings to use_trivial_contructor.rs

This commit is contained in:
soruh 2022-06-22 16:49:50 +02:00
parent f9379df630
commit 817082cad6

View file

@ -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,