diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-12-14 10:00:32 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-12-14 10:02:19 +0100 |
| commit | 4c73456fc1f5df8ebb3a89d9db657c3c54624d66 (patch) | |
| tree | 72a8fa83bb0a797c3e065746a50a74508bb41a3a /src/geom | |
| parent | 2470df05af993e89405c5c86329e08243960641d (diff) | |
Move highlighting into new IDE module
Diffstat (limited to 'src/geom')
| -rw-r--r-- | src/geom/paint.rs | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/geom/paint.rs b/src/geom/paint.rs index 58b034ae..b4064438 100644 --- a/src/geom/paint.rs +++ b/src/geom/paint.rs @@ -1,7 +1,5 @@ use std::str::FromStr; -use syntect::highlighting::Color as SynColor; - use super::*; /// How a fill or stroke should be painted. @@ -261,18 +259,6 @@ impl FromStr for RgbaColor { } } -impl From<SynColor> for RgbaColor { - fn from(SynColor { r, g, b, a }: SynColor) -> Self { - Self { r, g, b, a } - } -} - -impl From<RgbaColor> for SynColor { - fn from(RgbaColor { r, g, b, a }: RgbaColor) -> Self { - Self { r, g, b, a } - } -} - impl Debug for RgbaColor { fn fmt(&self, f: &mut Formatter) -> fmt::Result { if f.alternate() { |
