You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by tu...@apache.org on 2022/11/04 02:46:32 UTC

[arrow-rs] branch master updated: Fix more clippy lints (#3015)

This is an automated email from the ASF dual-hosted git repository.

tustvold pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow-rs.git


The following commit(s) were added to refs/heads/master by this push:
     new b4365ebb9 Fix more clippy lints (#3015)
b4365ebb9 is described below

commit b4365ebb99b443a676241c69852a61fa7ecabcbc
Author: Raphael Taylor-Davies <17...@users.noreply.github.com>
AuthorDate: Fri Nov 4 15:46:27 2022 +1300

    Fix more clippy lints (#3015)
---
 object_store/src/local.rs | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/object_store/src/local.rs b/object_store/src/local.rs
index fd3c3592a..f7b7ad7dd 100644
--- a/object_store/src/local.rs
+++ b/object_store/src/local.rs
@@ -803,16 +803,16 @@ fn open_file(path: &PathBuf) -> Result<File> {
 }
 
 fn open_writable_file(path: &PathBuf) -> Result<File> {
-    match File::create(&path) {
+    match File::create(path) {
         Ok(f) => Ok(f),
         Err(err) if err.kind() == std::io::ErrorKind::NotFound => {
             let parent = path
                 .parent()
                 .context(UnableToCreateFileSnafu { path: &path, err })?;
-            std::fs::create_dir_all(&parent)
+            std::fs::create_dir_all(parent)
                 .context(UnableToCreateDirSnafu { path: parent })?;
 
-            match File::create(&path) {
+            match File::create(path) {
                 Ok(f) => Ok(f),
                 Err(err) => Err(Error::UnableToCreateFile {
                     path: path.to_path_buf(),