Skip to content
This repository was archived by the owner on Mar 4, 2024. It is now read-only.

Commit f559e5f

Browse files
authored
Merge pull request #687 from sdroege/builder-must-use
Update gir for new builder `#[must_use]` usage
2 parents 1d90fc9 + 91d6610 commit f559e5f

File tree

153 files changed

+296
-153
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

153 files changed

+296
-153
lines changed

.github/workflows/windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313

1414
env:
1515
# git revision of gvsbuild we use for to build GTK and the other dependencies
16-
gvsbuildref: 353f3ba986a1da641b1fe82d21199d3f852661d8
16+
gvsbuildref: ce4c9de92dc3487d15b8f5ecc200705f951b6ae8
1717

1818
# bump this number if you want to force a rebuild of gvsbuild with the same revision
1919
gvsbuildupdate: 1

atk/src/auto/versions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ a69abbe5ee1a)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 50377b886959)
22
from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18)

atk/sys/versions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ a69abbe5ee1a)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 50377b886959)
22
from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18)

gdk/src/auto/versions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ a69abbe5ee1a)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 50377b886959)
22
from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18)

gdk/sys/versions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ a69abbe5ee1a)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 50377b886959)
22
from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18)

gdkx11/src/auto/versions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ a69abbe5ee1a)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 50377b886959)
22
from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18)

gdkx11/src/auto/x11_device_manager_xi2.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ impl X11DeviceManagerXI2 {
4747
/// A [builder-pattern] type to construct [`X11DeviceManagerXI2`] objects.
4848
///
4949
/// [builder-pattern]: https://doc.rust-lang.org/1.0.0/style/ownership/builders.html
50+
#[must_use = "The builder must be built to be used"]
5051
pub struct X11DeviceManagerXI2Builder {
5152
major: Option<i32>,
5253
minor: Option<i32>,
@@ -63,7 +64,7 @@ impl X11DeviceManagerXI2Builder {
6364

6465
// rustdoc-stripper-ignore-next
6566
/// Build the [`X11DeviceManagerXI2`].
66-
#[must_use = "The builder must be built to be used"]
67+
#[must_use = "Building the object from the builder is usually expensive and is not expected to have side effects"]
6768
pub fn build(self) -> X11DeviceManagerXI2 {
6869
let mut properties: Vec<(&str, &dyn ToValue)> = vec![];
6970
if let Some(ref major) = self.major {

gdkx11/src/auto/x11_device_xi2.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ impl X11DeviceXI2 {
3939
/// A [builder-pattern] type to construct [`X11DeviceXI2`] objects.
4040
///
4141
/// [builder-pattern]: https://doc.rust-lang.org/1.0.0/style/ownership/builders.html
42+
#[must_use = "The builder must be built to be used"]
4243
pub struct X11DeviceXI2Builder {
4344
device_id: Option<i32>,
4445
device_manager: Option<gdk::DeviceManager>,
@@ -65,7 +66,7 @@ impl X11DeviceXI2Builder {
6566

6667
// rustdoc-stripper-ignore-next
6768
/// Build the [`X11DeviceXI2`].
68-
#[must_use = "The builder must be built to be used"]
69+
#[must_use = "Building the object from the builder is usually expensive and is not expected to have side effects"]
6970
pub fn build(self) -> X11DeviceXI2 {
7071
let mut properties: Vec<(&str, &dyn ToValue)> = vec![];
7172
if let Some(ref device_id) = self.device_id {

gdkx11/sys/versions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ a69abbe5ee1a)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 50377b886959)
22
from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18)

0 commit comments

Comments
 (0)