Skip to content

Commit

Permalink
Merge pull request #50 from sancane/lints-v1.80.0
Browse files Browse the repository at this point in the history
Fix clippy lints v1.80.0
  • Loading branch information
sancane authored Jul 30, 2024
2 parents e57e419 + 710d738 commit 373ad6c
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion precis-core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "precis-core"
version = "0.1.9"
version = "0.1.10"
authors = ["Santiago Carot-Nemesio <[email protected]>"]
description = """
PRECIS Framework: Preparation, Enforcement, and Comparison of
Expand Down
2 changes: 1 addition & 1 deletion precis-core/src/stringclasses.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ pub trait SpecificDerivedPropertyValue {
/// > Else If .`cp`. .in. `Spaces` Then `ID_DIS` or `FREE_PVAL`;\
/// > Else If .`cp`. .in. `Symbols` Then `ID_DIS` or `FREE_PVAL`;\
/// > Else If .`cp`. .in. `Punctuation` Then `ID_DIS` or `FREE_PVAL`;\
/// > Else DISALLOWED;\
/// > Else `DISALLOWED`;
///
/// # Arguments
/// * `cp` - Unicode code point
Expand Down
2 changes: 1 addition & 1 deletion precis-tools/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "precis-tools"
version = "0.1.7"
version = "0.1.8"
authors = ["Santiago Carot-Nemesio <[email protected]>"]
description = """
Tools and parsers to generate PRECIS tables from the Unicode Character Database (UCD)
Expand Down
30 changes: 15 additions & 15 deletions precis-tools/src/generators/derived_property.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,59 +44,59 @@ impl CodeGen for DerivedPropertyValueGen {
)?;
writeln!(
file,
"/// to be used in specific string classes such as [`IdentifierClass`]"
"/// to be used in specific string classes such as [`IdentifierClass`]"
)?;
writeln!(
file,
"/// and [`FreeformClass`]. PRECIS framework defines two allowed"
"/// and [`FreeformClass`]. PRECIS framework defines two allowed"
)?;
writeln!(
file,
"/// values for above classes (ID_PVAL adn FREE_PVAL). In practice,"
"/// values for above classes (ID_PVAL adn FREE_PVAL). In practice,"
)?;
writeln!(
file,
"/// the derived property ID_PVAL is not used in this specification,"
"/// the derived property ID_PVAL is not used in this specification,"
)?;
writeln!(
file,
"/// because every ID_PVAL code point is PVALID, so only FREE_PVAL"
"/// because every ID_PVAL code point is PVALID, so only FREE_PVAL"
)?;
writeln!(file, "/// is actually mapped to SpecClassPVal.")?;
writeln!(file, "/// is actually mapped to SpecClassPVal.")?;
writeln!(
file,
"/// * **SpecClassDis** maps to those code points that are not to be"
)?;
writeln!(
file,
"/// included in one of the string classes but that might be permitted"
"/// included in one of the string classes but that might be permitted"
)?;
writeln!(
file,
"/// in others. PRECIS framework defines \"FREE_DIS\" for the"
"/// in others. PRECIS framework defines \"FREE_DIS\" for the"
)?;
writeln!(
file,
"/// [`FreeformClass`] and \"ID_DIS\" for the [`IdentifierClass`]."
"/// [`FreeformClass`] and \"ID_DIS\" for the [`IdentifierClass`]."
)?;
writeln!(
file,
"/// In practice, the derived property FREE_DIS is not used in this"
"/// In practice, the derived property FREE_DIS is not used in this"
)?;
writeln!(
file,
"/// specification, because every FREE_DIS code point is DISALLOWED,"
"/// specification, because every FREE_DIS code point is DISALLOWED,"
)?;
writeln!(file, "/// so only ID_DIS is mapped to SpecClassDis.")?;
writeln!(file, "/// so only ID_DIS is mapped to SpecClassDis.")?;
writeln!(
file,
"/// Both SpecClassPVal and SpecClassDis values are used to ease"
"/// Both SpecClassPVal and SpecClassDis values are used to ease"
)?;
writeln!(
file,
"/// extension if more classes are added beyond [`IdentifierClass`]"
"/// extension if more classes are added beyond [`IdentifierClass`]"
)?;
writeln!(file, "/// and [`FreeformClass`] in the future.")?;
writeln!(file, "/// and [`FreeformClass`] in the future.")?;
writeln!(file, "#[derive(Clone, Copy, Debug, PartialEq, Eq)]")?;
writeln!(file, "pub enum DerivedPropertyValue {{")?;
writeln!(file, "\t/// Value assigned to all those code points that are allowed to be used in any PRECIS string class.")?;
Expand Down

0 comments on commit 373ad6c

Please sign in to comment.