Skip to content

Commit

Permalink
Fix new clippy lints introduced in Rust 1.58 (#1170)
Browse files Browse the repository at this point in the history
  • Loading branch information
alamb authored Jan 14, 2022
1 parent 68e5750 commit 7449e2c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions arrow/src/buffer/immutable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ impl std::ops::Deref for Buffer {
}

unsafe impl Sync for Buffer {}
#[allow(clippy::non_send_fields_in_send_ty)]
unsafe impl Send for Buffer {}

impl From<MutableBuffer> for Buffer {
Expand Down
2 changes: 1 addition & 1 deletion arrow/src/util/test_util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ fn get_data_dir(udf_env: &str, submodule_data: &str) -> Result<PathBuf, Box<dyn
"env `{}` is undefined or has empty value, and the pre-defined data dir `{}` not found\n\
HINT: try running `git submodule update --init`",
udf_env,
pb.display().to_string(),
pb.display(),
).into())
}
}
Expand Down
4 changes: 2 additions & 2 deletions parquet/src/schema/printer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ fn print_logical_and_converted(
None => {
// Also print converted type if it is available
match converted_type {
ConvertedType::NONE => format!(""),
ConvertedType::NONE => String::new(),
decimal @ ConvertedType::DECIMAL => {
// For decimal type we should print precision and scale if they
// are > 0, e.g. DECIMAL(9,2) -
Expand All @@ -256,7 +256,7 @@ fn print_logical_and_converted(
format!("({},{})", p, s)
}
(p, 0) if p > 0 => format!("({})", p),
_ => format!(""),
_ => String::new(),
};
format!("{}{}", decimal, precision_scale)
}
Expand Down

0 comments on commit 7449e2c

Please sign in to comment.