Skip to content

Commit

Permalink
chore: fix clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
morenol committed May 18, 2021
1 parent b10eece commit 4a53aa3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/filesystem_handler/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ impl MemoryFileSystem {
}

impl FileSystemHandler for MemoryFileSystem {
#[allow(clippy::manual_map)]
fn open_stream<'a>(&'a self, name: &str) -> Option<Box<dyn Read + 'a>> {
if let Some(body) = self.files_map.get(name) {
Some(Box::new(BufReader::new(body.as_bytes())))
Expand Down
1 change: 1 addition & 0 deletions src/value/filters.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ impl Value {
}
}
}
#[allow(clippy::len_without_is_empty)]
pub fn len(self) -> Result<usize> {
match self {
Value::String(s) => Ok(s.len()),
Expand Down

0 comments on commit 4a53aa3

Please sign in to comment.