mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-08-15 20:37:48 +00:00
clippy: fix unneeded 'return' statement
This commit is contained in:
parent
cfb0b95b62
commit
4d3902426a
1 changed files with 2 additions and 3 deletions
5
src/uu/env/src/string_parser.rs
vendored
5
src/uu/env/src/string_parser.rs
vendored
|
@ -114,10 +114,9 @@ impl<'a> StringParser<'a> {
|
|||
}
|
||||
|
||||
pub fn peek_chunk(&self) -> Option<Chunk<'a>> {
|
||||
return self
|
||||
.get_chunk_with_length_at(self.pointer)
|
||||
self.get_chunk_with_length_at(self.pointer)
|
||||
.ok()
|
||||
.map(|(chunk, _)| chunk);
|
||||
.map(|(chunk, _)| chunk)
|
||||
}
|
||||
|
||||
pub fn consume_chunk(&mut self) -> Result<Chunk<'a>, Error> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue