1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 07:14:47 -05:00

chore: remove unnecessary lifetimes (#16878)

It seems we don't really need to allow these clippy rules.
This commit is contained in:
David Sherret 2022-11-30 14:19:32 -05:00 committed by GitHub
parent 972048ce36
commit 623dbe7a57
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 12 deletions

View file

@ -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>,

View file

@ -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();

View file

@ -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",