Fix a bunch of other low-hanging style lints (#36498)
- **Fix a bunch of low hanging style lints like unnecessary-return** - **Fix single worktree violation** - **And the rest** Release Notes: - N/A
This commit is contained in:
parent
df9c2aefb1
commit
05fc0c432c
239 changed files with 854 additions and 1015 deletions
|
@ -210,12 +210,12 @@ impl ThemePreviewTile {
|
|||
}
|
||||
|
||||
fn render_borderless(seed: f32, theme: Arc<Theme>) -> impl IntoElement {
|
||||
return Self::render_editor(
|
||||
Self::render_editor(
|
||||
seed,
|
||||
theme,
|
||||
Self::SIDEBAR_WIDTH_DEFAULT,
|
||||
Self::SKELETON_HEIGHT_DEFAULT,
|
||||
);
|
||||
)
|
||||
}
|
||||
|
||||
fn render_border(seed: f32, theme: Arc<Theme>) -> impl IntoElement {
|
||||
|
@ -246,7 +246,7 @@ impl ThemePreviewTile {
|
|||
) -> impl IntoElement {
|
||||
let sidebar_width = relative(0.20);
|
||||
|
||||
return div()
|
||||
div()
|
||||
.size_full()
|
||||
.p(Self::ROOT_PADDING)
|
||||
.rounded(Self::ROOT_RADIUS)
|
||||
|
@ -278,7 +278,7 @@ impl ThemePreviewTile {
|
|||
)),
|
||||
),
|
||||
)
|
||||
.into_any_element();
|
||||
.into_any_element()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue