lints: A bunch of extra style lint fixes (#36568)

- **lints: Fix 'doc_lazy_continuation'**
- **lints: Fix 'doc_overindented_list_items'**
- **inherent_to_string and io_other_error**
- **Some more lint fixes**
- **lints: enable bool_assert_comparison, match_like_matches_macro and
wrong_self_convention**


Release Notes:

- N/A
This commit is contained in:
Piotr Osiewicz 2025-08-20 12:05:58 +02:00 committed by GitHub
parent a32a264508
commit cf7c64d77f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
92 changed files with 277 additions and 345 deletions

View file

@ -685,7 +685,7 @@ impl LocalSettingsKind {
}
}
pub fn to_proto(&self) -> proto::LocalSettingsKind {
pub fn to_proto(self) -> proto::LocalSettingsKind {
match self {
Self::Settings => proto::LocalSettingsKind::Settings,
Self::Tasks => proto::LocalSettingsKind::Tasks,

View file

@ -3208,7 +3208,7 @@ async fn test_fs_operations(
})
.await
.unwrap()
.to_included()
.into_included()
.unwrap();
worktree_a.read_with(cx_a, |worktree, _| {
@ -3237,7 +3237,7 @@ async fn test_fs_operations(
})
.await
.unwrap()
.to_included()
.into_included()
.unwrap();
worktree_a.read_with(cx_a, |worktree, _| {
@ -3266,7 +3266,7 @@ async fn test_fs_operations(
})
.await
.unwrap()
.to_included()
.into_included()
.unwrap();
worktree_a.read_with(cx_a, |worktree, _| {
@ -3295,7 +3295,7 @@ async fn test_fs_operations(
})
.await
.unwrap()
.to_included()
.into_included()
.unwrap();
project_b
@ -3304,7 +3304,7 @@ async fn test_fs_operations(
})
.await
.unwrap()
.to_included()
.into_included()
.unwrap();
project_b
@ -3313,7 +3313,7 @@ async fn test_fs_operations(
})
.await
.unwrap()
.to_included()
.into_included()
.unwrap();
worktree_a.read_with(cx_a, |worktree, _| {

View file

@ -897,7 +897,7 @@ impl TestClient {
let window = cx.update(|cx| cx.active_window().unwrap().downcast::<Workspace>().unwrap());
let entity = window.root(cx).unwrap();
let cx = VisualTestContext::from_window(*window.deref(), cx).as_mut();
let cx = VisualTestContext::from_window(*window.deref(), cx).into_mut();
// it might be nice to try and cleanup these at the end of each test.
(entity, cx)
}