File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,9 @@ pub struct PublicStruct {
2525impl PublicStruct {
2626 pub fn new () -> Self {
2727 Self {
28- inner : DebugIgnore (InnerStructWithLotsOfDebugInfo { field : " field" , /* ... */ })
28+ // DebugIgnore<T> has a `From<T>` impl for the inner type; you can also construct
29+ // one explicitly.
30+ inner : InnerStructWithLotsOfDebugInfo { field : " field" , /* ... */ }. into (),
2931 }
3032 }
3133}
Original file line number Diff line number Diff line change 2424//! impl PublicStruct {
2525//! pub fn new() -> Self {
2626//! Self {
27- //! inner: DebugIgnore(InnerStructWithLotsOfDebugInfo { field: "field", /* ... */ })
27+ //! // DebugIgnore<T> has a `From<T>` impl for the inner type; you can also construct
28+ //! // one explicitly.
29+ //! inner: InnerStructWithLotsOfDebugInfo { field: "field", /* ... */ }.into(),
2830//! }
2931//! }
3032//! }
You can’t perform that action at this time.
0 commit comments