Get the hash display length based on settings. # Returns The number of characters to display for hashes.
(&self)
| 242 | /// |
| 243 | /// The number of characters to display for hashes. |
| 244 | pub(crate) fn get_hash_length(&self) -> usize { |
| 245 | if self.full_hash { |
| 246 | 52 // Full Base32 hash length |
| 247 | } else { |
| 248 | DEFAULT_HASH_LENGTH |
| 249 | } |
| 250 | } |
| 251 | |
| 252 | /// Format entries for default output. |
| 253 | /// |
no outgoing calls
no test coverage detected