Skip to content

Commit

Permalink
add allow lints to match hb code style
Browse files Browse the repository at this point in the history
  • Loading branch information
asibahi committed Oct 25, 2024
1 parent 70a97f9 commit 77ed397
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/hb/buffer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,16 @@ pub mod glyph_flag {
/// line-break position, in the following way:
///
/// 1. Iterate back from the line-break
/// position until the first cluster
/// start position that is NOT unsafe-to-concat,
/// position until the first cluster
/// start position that is NOT unsafe-to-concat,
/// 2. shape the segment from there till the
/// end of line, 3. check whether the resulting
/// glyph-run also is clear of the unsafe-to-concat
/// at its start-of-text position; if it is, just
/// splice it into place and the line is shaped;
/// If not, move on to a position further back that
/// is clear of unsafe-to-concat and retry from
/// there, and repeat.
/// end of line, 3. check whether the resulting
/// glyph-run also is clear of the unsafe-to-concat
/// at its start-of-text position; if it is, just
/// splice it into place and the line is shaped;
/// If not, move on to a position further back that
/// is clear of unsafe-to-concat and retry from
/// there, and repeat.
///
/// At the start of next line a similar
/// algorithm can be implemented.
Expand Down
16 changes: 16 additions & 0 deletions src/hb/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,22 @@
#![allow(non_camel_case_types)]
#![allow(non_upper_case_globals)]
#![allow(non_snake_case)]
#![allow(clippy::collapsible_if)]
#![allow(clippy::collapsible_else_if)]
#![allow(clippy::comparison_chain)]
#![allow(clippy::needless_range_loop)]
#![allow(clippy::non_canonical_partial_ord_impl)]
#![allow(clippy::upper_case_acronyms)]
#![allow(clippy::too_many_arguments)]
#![allow(clippy::wildcard_in_or_patterns)]
#![allow(clippy::identity_op)]
#![allow(clippy::mut_range_bound)]
#![allow(clippy::enum_variant_names)]
#![allow(clippy::manual_range_patterns)]
#![allow(clippy::type_complexity)]
#![allow(clippy::wrong_self_convention)]
#![allow(clippy::match_like_matches_macro)]
#![allow(clippy::manual_range_contains)]

mod algs;
#[macro_use]
Expand Down

0 comments on commit 77ed397

Please sign in to comment.