#3 [Example/Bug] Improve doc_example

已关闭
david2 月之前创建 · 0 条评论

It doesn't have Person derive Debug to quickly print out the Person's fields (As such the println ends up doing what Debug would do, less clean)

It's a simple fix...

#[derive(Debug)]
struct Person {
  ...
}

Maybe moving the comment about not needing to derive Clone, or remove it as Clone is unneeded

It doesn't have Person derive Debug to quickly print out the Person's fields (As such the println ends up doing what Debug would do, less clean) It's a simple fix... ```rust #[derive(Debug)] struct Person { ... } ``` Maybe moving the comment about not needing to derive Clone, or remove it as Clone is unneeded
david2 月之前 关闭
David Thielemann 在代码提交 2 月之前 中引用了该工单
登录 并参与到对话中。
未选择里程碑
未指派成员
1 名参与者
正在加载...
取消
保存
这个人很懒,什么都没留下。