Browse Source

docs: Fix warnings

merge-requests/1327/merge
Kévin Commaille 4 years ago
parent
commit
99959e4a47
No known key found for this signature in database
GPG Key ID: DD507DAE96E8245C
  1. 3
      src/components/audio_player.rs
  2. 2
      src/utils.rs

3
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));
}

2
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: <https://spec.matrix.org/v1.1/client-server-api/#notes-on-password-management>
pub fn validate_password(password: &str) -> PasswordValidity {
let mut validity = PasswordValidity::new();

Loading…
Cancel
Save