diff --git a/crates/nu-plugin/src/plugin.rs b/crates/nu-plugin/src/plugin.rs
index 5ef6daa852..e764dbf72e 100644
--- a/crates/nu-plugin/src/plugin.rs
+++ b/crates/nu-plugin/src/plugin.rs
@@ -55,7 +55,6 @@ pub fn serve_plugin(plugin: &mut dyn Plugin) {
match command {
Ok(NuCommand::config) => {
send_response(plugin.config());
- return;
}
Ok(NuCommand::begin_filter { params }) => {
send_response(plugin.begin_filter(params));
@@ -65,23 +64,19 @@ pub fn serve_plugin(plugin: &mut dyn Plugin) {
}
Ok(NuCommand::end_filter) => {
send_response(plugin.end_filter());
- return;
}
Ok(NuCommand::sink { params }) => {
plugin.sink(params.0, params.1);
- return;
}
Ok(NuCommand::quit) => {
plugin.quit();
- return;
}
e => {
send_response(ShellError::untagged_runtime_error(format!(
"Could not handle plugin message: {} {:?}",
input, e
)));
- return;
}
}
}
diff --git a/crates/nu_plugin_selector/src/tables.rs b/crates/nu_plugin_selector/src/tables.rs
index 06c03c180c..2b42c02ba1 100644
--- a/crates/nu_plugin_selector/src/tables.rs
+++ b/crates/nu_plugin_selector/src/tables.rs
@@ -343,23 +343,23 @@ mod tests {
use indexmap::indexmap;
use nu_protocol::UntaggedValue;
- const TABLE_EMPTY: &'static str = r#"
+ const TABLE_EMPTY: &str = r#"
"#;
- const TABLE_TH: &'static str = r#"
+ const TABLE_TH: &str = r#"
"#;
- const TABLE_TD: &'static str = r#"
+ const TABLE_TD: &str = r#"
"#;
- const TWO_TABLES_TD: &'static str = r#"
+ const TWO_TABLES_TD: &str = r#"
@@ -368,14 +368,14 @@ mod tests {
"#;
- const TABLE_TH_TD: &'static str = r#"
+ const TABLE_TH_TD: &str = r#"
"#;
- const TWO_TABLES_TH_TD: &'static str = r#"
+ const TWO_TABLES_TH_TD: &str = r#"
Name | Age |
John | 20 |
@@ -386,21 +386,21 @@ mod tests {
"#;
- const TABLE_TD_TD: &'static str = r#"
+ const TABLE_TD_TD: &str = r#"
"#;
- const TABLE_TH_TH: &'static str = r#"
+ const TABLE_TH_TH: &str = r#"
"#;
- const TABLE_COMPLEX: &'static str = r#"
+ const TABLE_COMPLEX: &str = r#"
Name | Age | Extra |
John | 20 |
@@ -410,7 +410,7 @@ mod tests {
"#;
- const TWO_TABLES_COMPLEX: &'static str = r#"
+ const TWO_TABLES_COMPLEX: &str = r#"
foo
@@ -433,7 +433,7 @@ mod tests {
"#;
- const HTML_NO_TABLE: &'static str = r#"
+ const HTML_NO_TABLE: &str = r#"
foo
@@ -441,7 +441,7 @@ mod tests {
"#;
- const HTML_TWO_TABLES: &'static str = r#"
+ const HTML_TWO_TABLES: &str = r#"
foo
@@ -458,7 +458,7 @@ mod tests {
"#;
- const HTML_TABLE_FRAGMENT: &'static str = r#"
+ const HTML_TABLE_FRAGMENT: &str = r#"
Name | Age |
John | 20 |
@@ -467,7 +467,7 @@ mod tests {