summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2022-11-30 14:19:32 -0500
committerGitHub <noreply@github.com>2022-11-30 19:19:32 +0000
commit623dbe7a5786a5aa600b14a7e13e26777313d844 (patch)
treed5e5fdf567df986490a7e2be7f71e2b44f3ed070
parent972048ce364a05bbb53a5cb3697dbf364cd3c412 (diff)
chore: remove unnecessary lifetimes (#16878)
It seems we don't really need to allow these clippy rules.
-rw-r--r--cli/lsp/documents.rs2
-rw-r--r--core/runtime.rs8
-rwxr-xr-xtools/lint.js7
3 files changed, 5 insertions, 12 deletions
diff --git a/cli/lsp/documents.rs b/cli/lsp/documents.rs
index 1fd9b541d..fb0540bcd 100644
--- a/cli/lsp/documents.rs
+++ b/cli/lsp/documents.rs
@@ -634,7 +634,7 @@ struct FileSystemDocuments {
}
impl FileSystemDocuments {
- pub fn get<'a>(
+ pub fn get(
&mut self,
cache: &HttpCache,
maybe_resolver: Option<&dyn deno_graph::source::Resolver>,
diff --git a/core/runtime.rs b/core/runtime.rs
index 4647160c9..7ce9d3d09 100644
--- a/core/runtime.rs
+++ b/core/runtime.rs
@@ -1279,8 +1279,8 @@ impl JsRuntime {
}
}
-fn get_stalled_top_level_await_message_for_module<'s>(
- scope: &'s mut v8::HandleScope,
+fn get_stalled_top_level_await_message_for_module(
+ scope: &mut v8::HandleScope,
module_id: ModuleId,
) -> Vec<v8::Global<v8::Message>> {
let module_map = JsRuntime::module_map(scope);
@@ -1296,8 +1296,8 @@ fn get_stalled_top_level_await_message_for_module<'s>(
messages
}
-fn find_stalled_top_level_await<'s>(
- scope: &'s mut v8::HandleScope,
+fn find_stalled_top_level_await(
+ scope: &mut v8::HandleScope,
) -> Vec<v8::Global<v8::Message>> {
let module_map = JsRuntime::module_map(scope);
let module_map = module_map.borrow();
diff --git a/tools/lint.js b/tools/lint.js
index 4e842c2b9..a9279bb25 100755
--- a/tools/lint.js
+++ b/tools/lint.js
@@ -117,13 +117,6 @@ async function clippy() {
"--",
"-D",
"warnings",
- "-A",
- // https://github.com/rust-lang/rust-clippy/issues/407
- "clippy::extra_unused_lifetimes",
- "-A",
- // https://github.com/rust-lang/rust-clippy/issues/7271
- // False positives in core/resources.rs for lifetime elision.
- "clippy::needless_lifetimes",
],
stdout: "inherit",
stderr: "inherit",