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 --- web/src/widget/checkbox.rs | 8 -------- 1 file changed, 8 deletions(-) (limited to 'web/src/widget/checkbox.rs') diff --git a/web/src/widget/checkbox.rs b/web/src/widget/checkbox.rs index 21801e39..543af99a 100644 --- a/web/src/widget/checkbox.rs +++ b/web/src/widget/checkbox.rs @@ -42,8 +42,6 @@ impl Checkbox { /// * a function that will be called when the [`Checkbox`] is toggled. It /// will receive the new state of the [`Checkbox`] and must produce a /// `Message`. - /// - /// [`Checkbox`]: struct.Checkbox.html pub fn new(is_checked: bool, label: impl Into, f: F) -> Self where F: 'static + Fn(bool) -> Message, @@ -59,24 +57,18 @@ impl Checkbox { } /// Sets the width of the [`Checkbox`]. - /// - /// [`Checkbox`]: struct.Checkbox.html pub fn width(mut self, width: Length) -> Self { self.width = width; self } /// Sets the style of the [`Checkbox`]. - /// - /// [`Checkbox`]: struct.Checkbox.html pub fn style(mut self, style: impl Into>) -> Self { self.style = style.into(); self } /// Sets the id of the [`Checkbox`]. - /// - /// [`Checkbox`]: struct.Checkbox.html pub fn id(mut self, id: impl Into) -> Self { self.id = Some(id.into()); self -- cgit