This repository was archived by the owner on Mar 4, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,7 @@ impl Image {
69
69
#[ derive( Clone , Default ) ]
70
70
// rustdoc-stripper-ignore-next
71
71
/// A builder for generating a [`Image`].
72
+ #[ must_use = "The builder must be built to be used" ]
72
73
pub struct ImageBuilder {
73
74
file : Option < String > ,
74
75
gicon : Option < gio:: Icon > ,
@@ -125,7 +126,7 @@ impl ImageBuilder {
125
126
126
127
// rustdoc-stripper-ignore-next
127
128
/// Build the [`Image`].
128
- #[ must_use = "The builder must be built to be used " ]
129
+ #[ must_use = "Building the object from the builder is usually expensive and is not expected to have side effects " ]
129
130
pub fn build ( self ) -> Image {
130
131
let mut properties: Vec < ( & str , & dyn ToValue ) > = vec ! [ ] ;
131
132
if let Some ( ref file) = self . file {
Original file line number Diff line number Diff line change @@ -94,6 +94,7 @@ impl StackSwitcher {
94
94
#[ derive( Clone , Default ) ]
95
95
// rustdoc-stripper-ignore-next
96
96
/// A builder for generating a [`StackSwitcher`].
97
+ #[ must_use = "The builder must be built to be used" ]
97
98
pub struct StackSwitcherBuilder {
98
99
#[ cfg( any( feature = "v3_20" , feature = "dox" ) ) ]
99
100
#[ cfg_attr( feature = "dox" , doc( cfg( feature = "v3_20" ) ) ) ]
@@ -151,7 +152,7 @@ impl StackSwitcherBuilder {
151
152
152
153
// rustdoc-stripper-ignore-next
153
154
/// Build the [`StackSwitcher`].
154
- #[ must_use = "The builder must be built to be used " ]
155
+ #[ must_use = "Building the object from the builder is usually expensive and is not expected to have side effects " ]
155
156
pub fn build ( self ) -> StackSwitcher {
156
157
let mut properties: Vec < ( & str , & dyn ToValue ) > = vec ! [ ] ;
157
158
#[ cfg( any( feature = "v3_20" , feature = "dox" ) ) ]
You can’t perform that action at this time.
0 commit comments