mirror of
https://github.com/denoland/deno.git
synced 2024-12-31 11:34:15 -05:00
chore: remove unnecessary lifetimes (#16878)
It seems we don't really need to allow these clippy rules.
This commit is contained in:
parent
972048ce36
commit
623dbe7a57
3 changed files with 5 additions and 12 deletions
|
@ -634,7 +634,7 @@ struct FileSystemDocuments {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl FileSystemDocuments {
|
impl FileSystemDocuments {
|
||||||
pub fn get<'a>(
|
pub fn get(
|
||||||
&mut self,
|
&mut self,
|
||||||
cache: &HttpCache,
|
cache: &HttpCache,
|
||||||
maybe_resolver: Option<&dyn deno_graph::source::Resolver>,
|
maybe_resolver: Option<&dyn deno_graph::source::Resolver>,
|
||||||
|
|
|
@ -1279,8 +1279,8 @@ impl JsRuntime {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_stalled_top_level_await_message_for_module<'s>(
|
fn get_stalled_top_level_await_message_for_module(
|
||||||
scope: &'s mut v8::HandleScope,
|
scope: &mut v8::HandleScope,
|
||||||
module_id: ModuleId,
|
module_id: ModuleId,
|
||||||
) -> Vec<v8::Global<v8::Message>> {
|
) -> Vec<v8::Global<v8::Message>> {
|
||||||
let module_map = JsRuntime::module_map(scope);
|
let module_map = JsRuntime::module_map(scope);
|
||||||
|
@ -1296,8 +1296,8 @@ fn get_stalled_top_level_await_message_for_module<'s>(
|
||||||
messages
|
messages
|
||||||
}
|
}
|
||||||
|
|
||||||
fn find_stalled_top_level_await<'s>(
|
fn find_stalled_top_level_await(
|
||||||
scope: &'s mut v8::HandleScope,
|
scope: &mut v8::HandleScope,
|
||||||
) -> Vec<v8::Global<v8::Message>> {
|
) -> Vec<v8::Global<v8::Message>> {
|
||||||
let module_map = JsRuntime::module_map(scope);
|
let module_map = JsRuntime::module_map(scope);
|
||||||
let module_map = module_map.borrow();
|
let module_map = module_map.borrow();
|
||||||
|
|
|
@ -117,13 +117,6 @@ async function clippy() {
|
||||||
"--",
|
"--",
|
||||||
"-D",
|
"-D",
|
||||||
"warnings",
|
"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",
|
stdout: "inherit",
|
||||||
stderr: "inherit",
|
stderr: "inherit",
|
||||||
|
|
Loading…
Reference in a new issue