Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Few cleanups caught by CI #1871

Merged
merged 2 commits into from
Oct 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions gdk4-win32/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#![allow(deprecated)]
#![cfg_attr(docsrs, feature(doc_cfg))]

#[cfg(not(all(feature = "win32", windows)))]
use std::ffi::c_void;

pub use gdk;
Expand Down
2 changes: 1 addition & 1 deletion gdk4-win32/src/win32_hcursor.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Take a look at the license at the top of the repository in the LICENSE file.

use std::{ffi::c_void, ptr::NonNull};

Check warning on line 3 in gdk4-win32/src/win32_hcursor.rs

View workflow job for this annotation

GitHub Actions / Windows MSVC

unused import: `ffi::c_void`

Check warning on line 3 in gdk4-win32/src/win32_hcursor.rs

View workflow job for this annotation

GitHub Actions / Windows MSVC

unused import: `ffi::c_void`

Check warning on line 3 in gdk4-win32/src/win32_hcursor.rs

View workflow job for this annotation

GitHub Actions / Windows MSVC

unused import: `ffi::c_void`

use glib::{translate::*, types::Pointee};

Expand All @@ -25,6 +25,6 @@

pub fn handle(&self) -> HCURSOR {
let ptr: NonNull<Pointee> = ObjectExt::property(self, "handle");
HCURSOR(ptr.as_ptr() as *mut c_void)
HCURSOR(ptr.as_ptr())
}
}
2 changes: 1 addition & 1 deletion gdk4/src/subclass/content_provider.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Take a look at the license at the top of the repository in the LICENSE file.

// rustdoc-stripper-ignore-next
//! Traits intended for subclassing [`ContentProvider`](crate::ContentProvider).
//! Traits intended for subclassing [`ContentProvider`].

use std::{future::Future, pin::Pin};

Expand Down
3 changes: 1 addition & 2 deletions gdk4/src/subclass/paintable.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Take a look at the license at the top of the repository in the LICENSE file.

// rustdoc-stripper-ignore-next
//! Traits intended for implementing the [`Paintable`](crate::Paintable)
//! interface.
//! Traits intended for implementing the [`Paintable`] interface.

use glib::translate::*;

Expand Down
3 changes: 1 addition & 2 deletions gtk4/src/subclass/accessible.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Take a look at the license at the top of the repository in the LICENSE file.

// rustdoc-stripper-ignore-next
//! Traits intended for implementing the [`Accessible`](crate::Accessible)
//! interface.
//! Traits intended for implementing the [`Accessible`] interface.

use std::mem::MaybeUninit;

Expand Down
3 changes: 1 addition & 2 deletions gtk4/src/subclass/accessible_range.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Take a look at the license at the top of the repository in the LICENSE file.

// rustdoc-stripper-ignore-next
//! Traits intended for implementing the
//! [`AccessibleRange`](crate::AccessibleRange) interface.
//! Traits intended for implementing the [`AccessibleRange`] interface.

use glib::translate::*;

Expand Down
3 changes: 1 addition & 2 deletions gtk4/src/subclass/actionable.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Take a look at the license at the top of the repository in the LICENSE file.

// rustdoc-stripper-ignore-next
//! Traits intended for implementing the [`Actionable`](crate::Actionable)
//! interface.
//! Traits intended for implementing the [`Actionable`] interface.

use glib::{translate::*, GString, Variant};

Expand Down
2 changes: 1 addition & 1 deletion gtk4/src/subclass/adjustment.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Take a look at the license at the top of the repository in the LICENSE file.

// rustdoc-stripper-ignore-next
//! Traits intended for subclassing [`Adjustment`](crate::Adjustment).
//! Traits intended for subclassing [`Adjustment`].

use glib::translate::*;

Expand Down
2 changes: 1 addition & 1 deletion gtk4/src/subclass/application.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Take a look at the license at the top of the repository in the LICENSE file.

// rustdoc-stripper-ignore-next
//! Traits intended for subclassing [`Application`](crate::Application).
//! Traits intended for subclassing [`Application`].

use glib::translate::*;

Expand Down
3 changes: 1 addition & 2 deletions gtk4/src/subclass/application_window.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Take a look at the license at the top of the repository in the LICENSE file.

// rustdoc-stripper-ignore-next
//! Traits intended for subclassing
//! [`ApplicationWindow`](crate::ApplicationWindow).
//! Traits intended for subclassing [`ApplicationWindow`].

use crate::{prelude::*, subclass::prelude::*, ApplicationWindow};

Expand Down
2 changes: 1 addition & 1 deletion gtk4/src/subclass/box_.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Take a look at the license at the top of the repository in the LICENSE file.

// rustdoc-stripper-ignore-next
//! Traits intended for subclassing [`Box`](crate::Box).
//! Traits intended for subclassing [`Box`].

use crate::{prelude::*, subclass::prelude::*, Box};

Expand Down
3 changes: 1 addition & 2 deletions gtk4/src/subclass/buildable.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Take a look at the license at the top of the repository in the LICENSE file.

// rustdoc-stripper-ignore-next
//! Traits intended for implementing the [`Buildable`](crate::Buildable)
//! interface.
//! Traits intended for implementing the [`Buildable`] interface.
use std::sync::OnceLock;

use glib::{translate::*, GString, Object, Quark, Value};
Expand Down
3 changes: 1 addition & 2 deletions gtk4/src/subclass/builder_scope.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Take a look at the license at the top of the repository in the LICENSE file.

// rustdoc-stripper-ignore-next
//! Traits intended for implementing the [`BuilderScope`](crate::BuilderScope)
//! interface.
//! Traits intended for implementing the [`BuilderScope`] interface.

use glib::{translate::*, GString};

Expand Down
2 changes: 1 addition & 1 deletion gtk4/src/subclass/button.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Take a look at the license at the top of the repository in the LICENSE file.

// rustdoc-stripper-ignore-next
//! Traits intended for subclassing [`Button`](crate::Button).
//! Traits intended for subclassing [`Button`].

use glib::translate::*;

Expand Down
2 changes: 1 addition & 1 deletion gtk4/src/subclass/cell_area.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Take a look at the license at the top of the repository in the LICENSE file.

// rustdoc-stripper-ignore-next
//! Traits intended for subclassing [`CellArea`](crate::CellArea).
//! Traits intended for subclassing [`CellArea`].

use std::mem;

Expand Down
2 changes: 1 addition & 1 deletion gtk4/src/subclass/cell_area_context.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Take a look at the license at the top of the repository in the LICENSE file.

// rustdoc-stripper-ignore-next
//! Traits intended for subclassing [`CellAreaContext`](crate::CellAreaContext).
//! Traits intended for subclassing [`CellAreaContext`].

use std::mem::MaybeUninit;

Expand Down
3 changes: 1 addition & 2 deletions gtk4/src/subclass/cell_editable.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Take a look at the license at the top of the repository in the LICENSE file.

// rustdoc-stripper-ignore-next
//! Traits intended for implementing the [`CellEditable`](crate::CellEditable)
//! interface.
//! Traits intended for implementing the [`CellEditable`] interface.

use glib::translate::*;

Expand Down
3 changes: 1 addition & 2 deletions gtk4/src/subclass/cell_layout.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Take a look at the license at the top of the repository in the LICENSE file.

// rustdoc-stripper-ignore-next
//! Traits intended for implementing the [`CellLayout`](crate::CellLayout)
//! interface.
//! Traits intended for implementing the [`CellLayout`] interface.
use std::sync::OnceLock;

use glib::{translate::*, Quark};
Expand Down
2 changes: 1 addition & 1 deletion gtk4/src/subclass/cell_renderer.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Take a look at the license at the top of the repository in the LICENSE file.

// rustdoc-stripper-ignore-next
//! Traits intended for subclassing [`CellRenderer`](crate::CellRenderer).
//! Traits intended for subclassing [`CellRenderer`].

use std::mem;

Expand Down
3 changes: 1 addition & 2 deletions gtk4/src/subclass/cell_renderer_text.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Take a look at the license at the top of the repository in the LICENSE file.

// rustdoc-stripper-ignore-next
//! Traits intended for subclassing
//! [`CellRendererText`](crate::CellRendererText).
//! Traits intended for subclassing [`CellRendererText`].

use glib::{translate::*, GString};

Expand Down
2 changes: 1 addition & 1 deletion gtk4/src/subclass/check_button.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Take a look at the license at the top of the repository in the LICENSE file.

// rustdoc-stripper-ignore-next
//! Traits intended for subclassing [`CheckButton`](crate::CheckButton).
//! Traits intended for subclassing [`CheckButton`].

use glib::translate::*;

Expand Down
3 changes: 1 addition & 2 deletions gtk4/src/subclass/color_chooser.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Take a look at the license at the top of the repository in the LICENSE file.

// rustdoc-stripper-ignore-next
//! Traits intended for implementing the [`ColorChooser`](crate::ColorChooser)
//! interface.
//! Traits intended for implementing the [`ColorChooser`] interface.

use gdk::RGBA;
use glib::translate::*;
Expand Down
2 changes: 1 addition & 1 deletion gtk4/src/subclass/combo_box.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Take a look at the license at the top of the repository in the LICENSE file.

// rustdoc-stripper-ignore-next
//! Traits intended for subclassing [`ComboBox`](crate::ComboBox).
//! Traits intended for subclassing [`ComboBox`].

use glib::{translate::*, GString};

Expand Down
2 changes: 1 addition & 1 deletion gtk4/src/subclass/dialog.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Take a look at the license at the top of the repository in the LICENSE file.

// rustdoc-stripper-ignore-next
//! Traits intended for subclassing [`Dialog`](crate::Dialog).
//! Traits intended for subclassing [`Dialog`].

use glib::translate::*;

Expand Down
2 changes: 1 addition & 1 deletion gtk4/src/subclass/drawing_area.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Take a look at the license at the top of the repository in the LICENSE file.

// rustdoc-stripper-ignore-next
//! Traits intended for subclassing [`DrawingA£rea`](crate::DrawingA£rea).
//! Traits intended for subclassing [`DrawingArea`].

use glib::translate::*;

Expand Down
3 changes: 1 addition & 2 deletions gtk4/src/subclass/editable.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Take a look at the license at the top of the repository in the LICENSE file.

// rustdoc-stripper-ignore-next
//! Traits intended for implementing the [`Editable`](crate::Editable)
//! interface.
//! Traits intended for implementing the [`Editable`] interface.
use std::sync::OnceLock;

use glib::{translate::*, GString, Quark};
Expand Down
2 changes: 1 addition & 1 deletion gtk4/src/subclass/entry.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Take a look at the license at the top of the repository in the LICENSE file.

// rustdoc-stripper-ignore-next
//! Traits intended for subclassing [`Entry`](crate::Entry).
//! Traits intended for subclassing [`Entry`].

use glib::translate::*;

Expand Down
2 changes: 1 addition & 1 deletion gtk4/src/subclass/entry_buffer.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Take a look at the license at the top of the repository in the LICENSE file.

// rustdoc-stripper-ignore-next
//! Traits intended for subclassing [`EntryBuffer`](crate::EntryBuffer).
//! Traits intended for subclassing [`EntryBuffer`].
use std::sync::OnceLock;

use glib::{translate::*, GString};
Expand Down
2 changes: 1 addition & 1 deletion gtk4/src/subclass/filter.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Take a look at the license at the top of the repository in the LICENSE file.

// rustdoc-stripper-ignore-next
//! Traits intended for subclassing [`Filter`](crate::Filter).
//! Traits intended for subclassing [`Filter`].

use glib::{translate::*, Object};

Expand Down
2 changes: 1 addition & 1 deletion gtk4/src/subclass/fixed.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Take a look at the license at the top of the repository in the LICENSE file.

// rustdoc-stripper-ignore-next
//! Traits intended for subclassing [`Fixed`](crate::Fixed).
//! Traits intended for subclassing [`Fixed`].

use crate::{prelude::*, subclass::prelude::*, Fixed};

Expand Down
2 changes: 1 addition & 1 deletion gtk4/src/subclass/flow_box_child.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Take a look at the license at the top of the repository in the LICENSE file.

// rustdoc-stripper-ignore-next
//! Traits intended for subclassing [`FlowBoxChild`](crate::FlowBoxChild).
//! Traits intended for subclassing [`FlowBoxChild`].

use glib::translate::*;

Expand Down
3 changes: 1 addition & 2 deletions gtk4/src/subclass/font_chooser.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Take a look at the license at the top of the repository in the LICENSE file.

// rustdoc-stripper-ignore-next
//! Traits intended for implementing the [`FontChooser`](crate::FontChooser)
//! interface.
//! Traits intended for implementing the [`FontChooser`] interface.
use std::sync::OnceLock;

use glib::{translate::*, GString, Quark};
Expand Down
2 changes: 1 addition & 1 deletion gtk4/src/subclass/frame.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Take a look at the license at the top of the repository in the LICENSE file.

// rustdoc-stripper-ignore-next
//! Traits intended for subclassing [`Frame`](crate::Frame).
//! Traits intended for subclassing [`Frame`].

use glib::translate::*;

Expand Down
2 changes: 1 addition & 1 deletion gtk4/src/subclass/gl_area.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Take a look at the license at the top of the repository in the LICENSE file.

// rustdoc-stripper-ignore-next
//! Traits intended for subclassing [`GLArea`](crate::GLArea).
//! Traits intended for subclassing [`GLArea`].

use gdk::GLContext;
use glib::translate::*;
Expand Down
2 changes: 1 addition & 1 deletion gtk4/src/subclass/grid.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Take a look at the license at the top of the repository in the LICENSE file.

// rustdoc-stripper-ignore-next
//! Traits intended for subclassing [`Grid`](crate::Grid).
//! Traits intended for subclassing [`Grid`].

use crate::{prelude::*, subclass::prelude::*, Grid};

Expand Down
2 changes: 1 addition & 1 deletion gtk4/src/subclass/im_context.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Take a look at the license at the top of the repository in the LICENSE file.

// rustdoc-stripper-ignore-next
//! Traits intended for subclassing [`IMContext`](crate::IMContext).
//! Traits intended for subclassing [`IMContext`].

use glib::{translate::*, GString};
use pango::AttrList;
Expand Down
2 changes: 1 addition & 1 deletion gtk4/src/subclass/layout_child.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Take a look at the license at the top of the repository in the LICENSE file.

// rustdoc-stripper-ignore-next
//! Traits intended for subclassing [`LayoutChild`](crate::LayoutChild).
//! Traits intended for subclassing [`LayoutChild`].

use crate::{prelude::*, subclass::prelude::*, LayoutChild};

Expand Down
2 changes: 1 addition & 1 deletion gtk4/src/subclass/layout_manager.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Take a look at the license at the top of the repository in the LICENSE file.

// rustdoc-stripper-ignore-next
//! Traits intended for subclassing [`LayoutManager`](crate::LayoutManager).
//! Traits intended for subclassing [`LayoutManager`].

use glib::translate::*;
use libc::c_int;
Expand Down
2 changes: 1 addition & 1 deletion gtk4/src/subclass/list_box_row.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Take a look at the license at the top of the repository in the LICENSE file.

// rustdoc-stripper-ignore-next
//! Traits intended for subclassing [`ListBoxRow`](crate::ListBoxRow).
//! Traits intended for subclassing [`ListBoxRow`].

use glib::translate::*;

Expand Down
2 changes: 1 addition & 1 deletion gtk4/src/subclass/media_file.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Take a look at the license at the top of the repository in the LICENSE file.

// rustdoc-stripper-ignore-next
//! Traits intended for subclassing [`MediaFile`](crate::MediaFile).
//! Traits intended for subclassing [`MediaFile`].

use glib::translate::*;

Expand Down
2 changes: 1 addition & 1 deletion gtk4/src/subclass/media_stream.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Take a look at the license at the top of the repository in the LICENSE file.

// rustdoc-stripper-ignore-next
//! Traits intended for subclassing [`MediaStream`](crate::MediaStream).
//! Traits intended for subclassing [`MediaStream`].

use glib::translate::*;

Expand Down
2 changes: 1 addition & 1 deletion gtk4/src/subclass/native_dialog.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Take a look at the license at the top of the repository in the LICENSE file.

// rustdoc-stripper-ignore-next
//! Traits intended for subclassing [`NativeDialog`](crate::NativeDialog).
//! Traits intended for subclassing [`NativeDialog`].

use glib::translate::*;

Expand Down
3 changes: 1 addition & 2 deletions gtk4/src/subclass/orientable.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Take a look at the license at the top of the repository in the LICENSE file.

// rustdoc-stripper-ignore-next
//! Traits intended for implementing the [`Orientable`](crate::Orientable)
//! interface.
//! Traits intended for implementing the [`Orientable`] interface.

use crate::{prelude::*, subclass::prelude::*, Orientable};

Expand Down
Loading
Loading