Formatting.

This commit is contained in:
Andrés N. Robalino 2019-10-15 05:42:24 -05:00
parent ec2e35ad81
commit 0373006710
2 changed files with 6 additions and 5 deletions

View File

@ -70,9 +70,9 @@ pub fn config(
if let Some(v) = get {
let key = v.to_string();
let value = result.get(&key).ok_or_else(|| {
ShellError::labeled_error("Missing key in config", "key", v.tag())
})?;
let value = result
.get(&key)
.ok_or_else(|| ShellError::labeled_error("Missing key in config", "key", v.tag()))?;
let mut results = VecDeque::new();

View File

@ -36,12 +36,13 @@ fn first(
FirstArgs { rows }: FirstArgs,
context: RunnableContext,
) -> Result<OutputStream, ShellError> {
let rows_desired = if let Some(quantity) = rows {
*quantity
} else {
1
};
Ok(OutputStream::from_input(context.input.values.take(rows_desired)))
Ok(OutputStream::from_input(
context.input.values.take(rows_desired),
))
}