From 01322f69a406eee76014f5e2834336e2295ad80e Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Wed, 25 Nov 2020 07:11:27 +0100 Subject: Use recently stabilized intra-doc links See RFC: https://github.com/rust-lang/rfcs/blob/master/text/1946-intra-rustdoc-links.md --- graphics/src/widget/canvas.rs | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'graphics/src/widget/canvas.rs') diff --git a/graphics/src/widget/canvas.rs b/graphics/src/widget/canvas.rs index ae0d87a4..95ede50f 100644 --- a/graphics/src/widget/canvas.rs +++ b/graphics/src/widget/canvas.rs @@ -3,9 +3,6 @@ //! A [`Canvas`] widget can be used to draw different kinds of 2D shapes in a //! [`Frame`]. It can be used for animation, data visualization, game graphics, //! and more! -//! -//! [`Canvas`]: struct.Canvas.html -//! [`Frame`]: struct.Frame.html use crate::{Backend, Defaults, Primitive, Renderer}; use iced_native::layout; use iced_native::mouse; @@ -41,8 +38,6 @@ pub use text::Text; /// A widget capable of drawing 2D graphics. /// -/// [`Canvas`]: struct.Canvas.html -/// /// # Examples /// The repository has a couple of [examples] showcasing how to use a /// [`Canvas`]: @@ -108,8 +103,6 @@ impl> Canvas { const DEFAULT_SIZE: u16 = 100; /// Creates a new [`Canvas`]. - /// - /// [`Canvas`]: struct.Canvas.html pub fn new(program: P) -> Self { Canvas { width: Length::Units(Self::DEFAULT_SIZE), @@ -120,16 +113,12 @@ impl> Canvas { } /// Sets the width of the [`Canvas`]. - /// - /// [`Canvas`]: struct.Canvas.html pub fn width(mut self, width: Length) -> Self { self.width = width; self } /// Sets the height of the [`Canvas`]. - /// - /// [`Canvas`]: struct.Canvas.html pub fn height(mut self, height: Length) -> Self { self.height = height; self -- cgit