diff --git a/Cargo.toml b/Cargo.toml index 8bf9b41..1f8cbc6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "compact-encoding" -version = "1.1.0" +version = "2.0.0" license = "MIT OR Apache-2.0" description = "A series of compact encoding schemes for building small and fast parsers and serializers" documentation = "https://docs.rs/compact-encoding" diff --git a/src/fixedwidth.rs b/src/fixedwidth.rs index 4ed4819..6b70e54 100644 --- a/src/fixedwidth.rs +++ b/src/fixedwidth.rs @@ -57,7 +57,7 @@ pub trait FixedWidthEncoding { Self: Sized; /// Get a uint in a form that encodes to a fixed width - fn as_fixed_width(&self) -> FixedWidthUint { + fn as_fixed_width(&self) -> FixedWidthUint<'_, Self> { FixedWidthUint(self) } }