Fix clippy::needless_borrow lint violations (#36444)

Release Notes:

- N/A
This commit is contained in:
Piotr Osiewicz 2025-08-18 23:54:35 +02:00 committed by GitHub
parent eecf142f06
commit 9e0e233319
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
242 changed files with 801 additions and 821 deletions

View file

@ -155,7 +155,7 @@ fn init_panic_hook(session_id: String) {
log::error!(
"panic occurred: {}\nBacktrace:\n{}",
&payload,
(&backtrace).join("\n")
backtrace.join("\n")
);
let panic_data = telemetry_events::Panic {
@ -796,11 +796,8 @@ fn initialize_settings(
fs: Arc<dyn Fs>,
cx: &mut App,
) -> watch::Receiver<Option<NodeBinaryOptions>> {
let user_settings_file_rx = watch_config_file(
&cx.background_executor(),
fs,
paths::settings_file().clone(),
);
let user_settings_file_rx =
watch_config_file(cx.background_executor(), fs, paths::settings_file().clone());
handle_settings_file_changes(user_settings_file_rx, cx, {
let session = session.clone();