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

Commit d2c721b

Browse files
gdk: pass Atom by copy instead of by ref
1 parent 241fdaa commit d2c721b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

gdk/src/drag_context.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ impl DragContext {
9898
}
9999

100100
#[doc(alias = "gdk_drag_begin")]
101-
pub fn drag_begin(window: &Window, targets: &[&Atom]) -> Option<DragContext> {
101+
pub fn drag_begin(window: &Window, targets: &[Atom]) -> Option<DragContext> {
102102
skip_assert_initialized!();
103103
unsafe {
104104
from_glib_full(ffi::gdk_drag_begin(
@@ -112,7 +112,7 @@ impl DragContext {
112112
pub fn drag_begin_for_device<P: IsA<Device>>(
113113
window: &Window,
114114
device: &P,
115-
targets: &[&Atom],
115+
targets: &[Atom],
116116
) -> Option<DragContext> {
117117
skip_assert_initialized!();
118118
unsafe {
@@ -130,7 +130,7 @@ impl DragContext {
130130
pub fn drag_begin_from_point<P: IsA<Device>>(
131131
window: &Window,
132132
device: &P,
133-
targets: &[&Atom],
133+
targets: &[Atom],
134134
x_root: i32,
135135
y_root: i32,
136136
) -> Option<DragContext> {

gdkwayland/src/wayland_window.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ glib::wrapper! {
1414

1515
impl WaylandWindow {
1616
#[doc(alias = "gdk_wayland_selection_add_targets")]
17-
pub fn selection_add_targets(&self, selection: &Atom, targets: &[&Atom]) {
17+
pub fn selection_add_targets(&self, selection: &Atom, targets: &[Atom]) {
1818
unsafe {
1919
ffi::gdk_wayland_selection_add_targets(
2020
self.to_glib_none().0,

0 commit comments

Comments
 (0)