mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 11:55:55 +02:00
Fix clippy (#15489)
# Description There are some clippy(version 0.1.86) errors on nushell repo. This pr is trying to fix it. # User-Facing Changes Hopefully none. # Tests + Formatting NaN # After Submitting NaN
This commit is contained in:
@ -317,7 +317,7 @@ impl NuDataFrame {
|
||||
let series = self.as_series(span)?;
|
||||
let column = conversion::create_column_from_series(&series, row, row + 1, span)?;
|
||||
|
||||
if column.len() == 0 {
|
||||
if column.is_empty() {
|
||||
Err(ShellError::AccessEmptyContent { span })
|
||||
} else {
|
||||
let value = column
|
||||
|
Reference in New Issue
Block a user