From 99959e4a4764b89e6d908e2b3bfb48c0f88b057c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= Date: Fri, 6 May 2022 16:51:46 +0200 Subject: [PATCH] docs: Fix warnings --- src/components/audio_player.rs | 3 ++- src/utils.rs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/audio_player.rs b/src/components/audio_player.rs index d6ff4dde..e68cb7d5 100644 --- a/src/components/audio_player.rs +++ b/src/components/audio_player.rs @@ -137,7 +137,8 @@ impl AudioPlayer { /// Set the file to play. /// - /// This is a convenience method that calls [`set_media_file()`]. + /// This is a convenience method that calls + /// [`AudioPlayer::set_media_file()`]. pub fn set_file(&self, file: Option<&gio::File>) { self.set_media_file(file.map(gtk::MediaFile::for_file)); } diff --git a/src/utils.rs b/src/utils.rs index ab865e99..7bc46aad 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -280,7 +280,7 @@ impl PasswordValidity { /// A password should include a lower-case letter, an upper-case letter, a /// number and a symbol and be at a minimum 8 characters in length. /// -/// See: https://spec.matrix.org/v1.1/client-server-api/#notes-on-password-management +/// See: pub fn validate_password(password: &str) -> PasswordValidity { let mut validity = PasswordValidity::new();