Diffstat (limited to 'src/symbol.rs')
-rw-r--r--src/symbol.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/symbol.rs b/src/symbol.rs
index 1e13344..7e1ee46 100644
--- a/src/symbol.rs
+++ b/src/symbol.rs
@@ -65,7 +65,7 @@ impl Symbol {
/// is too complex to store in the symbol then a
/// [`EncodeError::TooComplex`] error is returned. If this happens try using
/// a shorter tag and/or remove capitals and numbers.
- pub const fn try_new(tag: &str) -> Result<Self, EncodeError> {
+ pub const fn try_new(tag: &str) -> Result<Self, EncodeError<'_>> {
match encode(tag) {
Ok(tag) => Ok(Self(tag)),
Err(err) => Err(err),
@@ -192,7 +192,7 @@ impl<'a> core::fmt::Display for EncodeError<'a> {
impl<'a> std::error::Error for EncodeError<'a> {}
// Decode an arithmetic coded int into a string.
-fn decode(input: u64, f: &mut core::fmt::Formatter) -> core::fmt::Result {
+fn decode(input: u64, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
// The interval and a range in that interval.
let (interval, mut range) = Interval::new();
@@ -358,7 +358,7 @@ fn bit(precision: &mut u64, offset: &mut u64, input: u64) -> Option<u64> {
// Arithmetic code a string into a int.
//
// This is a type of compression.
-const fn encode(input: &str) -> Result<u64, EncodeError> {
+const fn encode(input: &str) -> Result<u64, EncodeError<'_>> {
// Interval and current range in that interval.
let (interval, mut range) = Interval::new();