diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-06-13 19:44:57 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-06-13 19:44:57 +0200 |
| commit | 891af17260a6750a74a102388a05e59cf1ffc3c1 (patch) | |
| tree | 1f4b45e348e678627e62815cc5aa3d58ce1c472e | |
| parent | 2fe549c1ec40681829b59f95a5a2f5db335ec3af (diff) | |
Bump lipsum
| -rw-r--r-- | Cargo.lock | 2 | ||||
| -rw-r--r-- | Cargo.toml | 2 | ||||
| -rw-r--r-- | src/frame.rs | 2 | ||||
| -rw-r--r-- | src/library/utility/string.rs | 4 |
4 files changed, 4 insertions, 6 deletions
@@ -321,7 +321,7 @@ checksum = "349d5a591cd28b49e1d1037471617a32ddcda5731b99419008085f72d5a53836" [[package]] name = "lipsum" version = "0.8.2" -source = "git+https://github.com/reknih/lipsum#d6d8f2cba12f8dee8c8ed4af62858cdb061c0801" +source = "git+https://github.com/reknih/lipsum#025427353ab32268daa3d96feda380a96db529c5" dependencies = [ "rand", "rand_chacha", @@ -16,7 +16,7 @@ typst-macros = { path = "./macros" } # Utilities bytemuck = "1" fxhash = "0.2" -lipsum = { git = "https://github.com/reknih/lipsum", default-features = false } +lipsum = { git = "https://github.com/reknih/lipsum" } once_cell = "1" serde = { version = "1", features = ["derive"] } typed-arena = "2" diff --git a/src/frame.rs b/src/frame.rs index 6855e7ac..77545d06 100644 --- a/src/frame.rs +++ b/src/frame.rs @@ -176,7 +176,7 @@ impl Frame { return; } - // Try to copy the elements without adjusting the positioned. + // Try to copy the elements without adjusting the position. // Also try to reuse the elements if the Arc isn't shared. let range = layer .. layer; if pos.is_zero() { diff --git a/src/library/utility/string.rs b/src/library/utility/string.rs index 3036df06..ecfded2b 100644 --- a/src/library/utility/string.rs +++ b/src/library/utility/string.rs @@ -1,5 +1,3 @@ -use lipsum::lipsum_from_seed; - use crate::eval::Regex; use crate::library::prelude::*; @@ -22,7 +20,7 @@ pub fn str(_: &mut Machine, args: &mut Args) -> TypResult<Value> { /// Create blind text. pub fn lorem(_: &mut Machine, args: &mut Args) -> TypResult<Value> { let words: usize = args.expect("number of words")?; - Ok(Value::Str(lipsum_from_seed(words, 97).into())) + Ok(Value::Str(lipsum::lipsum(words).into())) } /// Create a regular expression. |
