Implement is_empty method
Clippy warns of missing `is_empty`, trivially implement it by calling through to `self.data.is_empty()`.
This commit is contained in:
parent
1a818ea099
commit
4e87e6fe94
|
@ -61,6 +61,11 @@ impl SharedSecret {
|
|||
self.len
|
||||
}
|
||||
|
||||
/// True if the underlying data buffer is empty.
|
||||
pub fn is_empty(&self) -> bool {
|
||||
self.data.is_empty()
|
||||
}
|
||||
|
||||
/// Set the length of the object.
|
||||
pub(crate) fn set_len(&mut self, len: usize) {
|
||||
debug_assert!(len <= self.data.len());
|
||||
|
|
Loading…
Reference in New Issue