We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c4a93ee commit d0106baCopy full SHA for d0106ba
compiler/src/docs.rs
@@ -519,11 +519,16 @@ impl<'a> GenerateDocumentation<'a> {
519
let name = id.name(self.db()).clone();
520
let docs = id.documentation(self.db()).clone();
521
let mut obj = Object::new();
522
+ let typ = format!(
523
+ "trait{} {}",
524
+ if public { " pub" } else { "" },
525
+ format_type(self.db(), id)
526
+ );
527
528
obj.add("name", Json::String(name));
529
obj.add("location", location_to_json(id.location(self.db())));
530
obj.add("public", Json::Bool(public));
- obj.add("type", Json::String(format_type(self.db(), id)));
531
+ obj.add("type", Json::String(typ));
532
obj.add("documentation", Json::String(docs));
533
obj.add(
534
"required_methods",
0 commit comments