summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector@hecrj.dev>2023-09-09 21:16:55 +0200
committerLibravatar GitHub <noreply@github.com>2023-09-09 21:16:55 +0200
commite3aa8f71e6d27135ddc3bddf2a141fe42375b3f9 (patch)
tree2fd3b5f27ff4ac185a105ddce1a8f26b1b5b276b /src
parent89d9c45d25e9bf89e48858b135bc7a2d41c757a8 (diff)
parent419d9374b79b39293ba9a17967c2356d29377d8f (diff)
downloadiced-e3aa8f71e6d27135ddc3bddf2a141fe42375b3f9.tar.gz
iced-e3aa8f71e6d27135ddc3bddf2a141fe42375b3f9.tar.bz2
iced-e3aa8f71e6d27135ddc3bddf2a141fe42375b3f9.zip
Merge pull request #2077 from matze/fix-doc-links
Fix majority of unresolved documentation links
Diffstat (limited to '')
-rw-r--r--src/lib.rs11
-rw-r--r--src/settings.rs2
-rw-r--r--src/window/icon.rs2
3 files changed, 8 insertions, 7 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 91c78423..3cbe716a 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -151,6 +151,7 @@
#![doc(
html_logo_url = "https://raw.githubusercontent.com/iced-rs/iced/9ab6923e943f784985e9ef9ca28b10278297225d/docs/logo.svg"
)]
+#![forbid(rust_2018_idioms, unsafe_code)]
#![deny(
missing_debug_implementations,
missing_docs,
@@ -159,9 +160,9 @@
clippy::from_over_into,
clippy::needless_borrow,
clippy::new_without_default,
- clippy::useless_conversion
+ clippy::useless_conversion,
+ rustdoc::broken_intra_doc_links
)]
-#![forbid(rust_2018_idioms, unsafe_code)]
#![allow(clippy::inherent_to_string, clippy::type_complexity)]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
use iced_widget::graphics;
@@ -258,11 +259,11 @@ pub mod system {
pub mod overlay {
//! Display interactive elements on top of other widgets.
- /// A generic [`Overlay`].
+ /// A generic overlay.
///
- /// This is an alias of an `iced_native` element with a default `Renderer`.
+ /// This is an alias of an [`overlay::Element`] with a default `Renderer`.
///
- /// [`Overlay`]: iced_native::Overlay
+ /// [`overlay::Element`]: crate::core::overlay::Element
pub type Element<'a, Message, Renderer = crate::Renderer> =
crate::core::overlay::Element<'a, Message, Renderer>;
diff --git a/src/settings.rs b/src/settings.rs
index 0dd46584..8659603c 100644
--- a/src/settings.rs
+++ b/src/settings.rs
@@ -23,7 +23,7 @@ pub struct Settings<Flags> {
/// The default [`Font`] to be used.
///
- /// By default, it uses [`Font::SansSerif`].
+ /// By default, it uses [`Family::SansSerif`](crate::font::Family::SansSerif).
pub default_font: Font,
/// The text size that will be used by default.
diff --git a/src/window/icon.rs b/src/window/icon.rs
index 0cb206b3..ef71c228 100644
--- a/src/window/icon.rs
+++ b/src/window/icon.rs
@@ -10,7 +10,7 @@ use std::path::Path;
/// Creates an icon from an image file.
///
-/// This will return an error in case the file is missing at run-time. You may prefer [`Self::from_file_data`] instead.
+/// This will return an error in case the file is missing at run-time. You may prefer [`from_file_data`] instead.
#[cfg(feature = "image")]
pub fn from_file<P: AsRef<Path>>(icon_path: P) -> Result<Icon, Error> {
let icon = image::io::Reader::open(icon_path)?.decode()?.to_rgba8();