Skip to content

Commit

Permalink
Fix clippy lints for vello_editor example
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoburns committed Oct 4, 2024
1 parent 49aa59a commit 6129e10
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/vello_editor/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ struct SimpleVelloApp<'s> {
editor: text::Editor,
}

impl<'s> ApplicationHandler for SimpleVelloApp<'s> {
impl ApplicationHandler for SimpleVelloApp<'_> {
fn resumed(&mut self, event_loop: &ActiveEventLoop) {
let RenderState::Suspended(cached_window) = &mut self.state else {
return;
Expand Down
5 changes: 3 additions & 2 deletions parley/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// Copyright 2021 the Parley Authors
// SPDX-License-Identifier: Apache-2.0 OR MIT

//! Rich text layout.
//! Parley is library for rich text layout.
//!
//! Key types are:
//! - [FontContext] and [LayoutContext] which are global resources which should be shared between all layouts (or at coarse-grained boundaries).
//! - [FontContext] and [LayoutContext] are resources which should be shared globally (or at coarse-grained boundaries).
//! - [FontContext] is database of fonts.
//! - [LayoutContext] is scratch space that allows for reuse of allocations between layouts.
//! - [RangedBuilder] and [TreeBuilder] which are builders for creating a [Layout].
Expand All @@ -13,6 +13,7 @@
//!
//! They are constructed using the [ranged_builder](LayoutContext::ranged_builder) and [tree_builder](LayoutContext::ranged_builder) on [LayoutContext].
//! - [Layout] which represents styled paragraph(s) of text and can perform shaping, line-breaking, bidi-reordering, and alignment of that text.
//!
//! `Layout` supports re-linebreaking and re-aligning many times (in case the width at which wrapping should occur changes). But if the text content or
//! the styles applied to that content change then a new `Layout` must be created using a new `RangedBuilder` or `TreeBuilder`.
//!
Expand Down

0 comments on commit 6129e10

Please sign in to comment.