diff options
| author | Cesar Eduardo Barros <[email protected]> | 2020-01-11 13:04:25 -0300 |
|---|---|---|
| committer | Jack O'Connor <[email protected]> | 2020-01-12 18:27:42 -0500 |
| commit | 9f509a8f1f138f1089756fd996a688cd029733f0 (patch) | |
| tree | d9e4b0ed8e17821e8bb0cc4ea0869c469b885db9 /src/guts.rs | |
| parent | 4690c5f14e066957cace7da8583b94f86cc1662b (diff) | |
Inline trivial functions
For the Read and Write traits, this also allows the compiler to see that
the return value is always Ok, allowing it to remove the Err case from
the caller as dead code.
Diffstat (limited to 'src/guts.rs')
| -rw-r--r-- | src/guts.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/guts.rs b/src/guts.rs index 428e911..88dcc86 100644 --- a/src/guts.rs +++ b/src/guts.rs @@ -18,10 +18,12 @@ impl ChunkState { )) } + #[inline] pub fn len(&self) -> usize { self.0.len() } + #[inline] pub fn update(&mut self, input: &[u8]) -> &mut Self { self.0.update(input); self |
