run rustfmt on match plugin
use nu::{
- serve_plugin, CallInfo, Plugin, Primitive, ReturnSuccess, ReturnValue, ShellError,
- Signature, SyntaxShape, Tagged, Value,
+ serve_plugin, CallInfo, Plugin, Primitive, ReturnSuccess, ReturnValue, ShellError, Signature,
+ SyntaxShape, Tagged, Value,
};
use regex::Regex;
@@ -37,7 +37,9 @@ impl Plugin for Match {
}
_ => {
return Err(ShellError::string(format!(
- "Unrecognized type in params: {:?}", args[0])));
+ "Unrecognized type in params: {:?}",
+ args[0]
+ )));
}
}
match &args[1] {
@@ -49,7 +51,9 @@ impl Plugin for Match {
}
_ => {
return Err(ShellError::string(format!(
- "Unrecognized type in params: {:?}", args[0])));
+ "Unrecognized type in params: {:?}",
+ args[0]
+ )));
}
}
}
@@ -73,17 +77,20 @@ impl Plugin for Match {
}
_ => {
return Err(ShellError::string(format!(
- "value is not a string! {:?}", &val)));
+ "value is not a string! {:?}",
+ &val
+ )));
}
}
} else {
return Err(ShellError::string(format!(
- "column not in row! {:?} {:?}", &self.column, dict)));
+ "column not in row! {:?} {:?}",
+ &self.column, dict
+ )));
}
}
_ => {
- return Err(ShellError::string(format!(
- "Not a row! {:?}", &input)));
+ return Err(ShellError::string(format!("Not a row! {:?}", &input)));
}
}
if flag {
