diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-04-07 14:32:35 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-04-07 16:19:51 +0200 |
| commit | 1192132dc0a9e991953fd29e93f87c8437a53ea0 (patch) | |
| tree | 67061e75a5a15c7997a3ac2de349b5e9ce234434 /src/library/mod.rs | |
| parent | eb22eed31b08874fbbbee68d2ae59f0d02f9e95d (diff) | |
Rename length-related types
`Fractional` => `Fraction`
`Relative` => `Ratio`
`Linear` => `Relative`
Diffstat (limited to 'src/library/mod.rs')
| -rw-r--r-- | src/library/mod.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/library/mod.rs b/src/library/mod.rs index bba002de..af9ab575 100644 --- a/src/library/mod.rs +++ b/src/library/mod.rs @@ -167,13 +167,13 @@ castable! { } castable! { - Spec<Linear>, - Expected: "array of exactly two linears", + Spec<Relative>, + Expected: "array of two relative lengths", Value::Array(array) => { match array.as_slice() { [a, b] => { - let a = a.clone().cast::<Linear>()?; - let b = b.clone().cast::<Linear>()?; + let a = a.clone().cast::<Relative>()?; + let b = b.clone().cast::<Relative>()?; Spec::new(a, b) }, _ => return Err("point array must contain exactly two entries".to_string()), |
