Fix mutability of recipient in accessors.

This commit is contained in:
Justus Winter 2024-10-21 12:38:58 +02:00
parent 1d1a41ac3d
commit db0fe0873d
No known key found for this signature in database
GPG Key ID: 686F55B4AB2B3386
2 changed files with 2 additions and 2 deletions

View File

@ -263,7 +263,7 @@ impl<Arguments, Prefix, Options> CertDesignators<Arguments, Prefix, Options> {
}
/// Like `Vec::is_empty`.
pub fn is_empty(&mut self) -> bool {
pub fn is_empty(&self) -> bool {
self.designators.is_empty()
}

View File

@ -122,7 +122,7 @@ impl<Arguments, Options> UserIDDesignators<Arguments, Options> {
}
/// Like `Vec::is_empty`.
pub fn is_empty(&mut self) -> bool {
pub fn is_empty(&self) -> bool {
self.designators.is_empty()
}