From c05d2850420a2c163b8f62c33a6cef7c0ae1ad8d Mon Sep 17 00:00:00 2001 From: Vladislav Stepanov <8uk.8ak@gmail.com> Date: Fri, 14 Apr 2023 23:18:58 +0400 Subject: Workspace reorder (#868) * Try different workspace structure Move main crate (atuin) to be on the same level with other crates in this workspace * extract common dependencies to the workspace definition * fix base64 v0.21 deprecation warning * questionable: update deps & fix chrono deprecations possible panic sites are unchanged, they're just more visible now * Revert "questionable: update deps & fix chrono deprecations" This reverts commit 993e60f8dea81a1625a04285a617959ad09a0866. --- src/ratatui/widgets/canvas/points.rs | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 src/ratatui/widgets/canvas/points.rs (limited to 'src/ratatui/widgets/canvas/points.rs') diff --git a/src/ratatui/widgets/canvas/points.rs b/src/ratatui/widgets/canvas/points.rs deleted file mode 100644 index d9f97522..00000000 --- a/src/ratatui/widgets/canvas/points.rs +++ /dev/null @@ -1,30 +0,0 @@ -use crate::ratatui::{ - style::Color, - widgets::canvas::{Painter, Shape}, -}; - -/// A shape to draw a group of points with the given color -#[derive(Debug, Clone)] -pub struct Points<'a> { - pub coords: &'a [(f64, f64)], - pub color: Color, -} - -impl<'a> Shape for Points<'a> { - fn draw(&self, painter: &mut Painter) { - for (x, y) in self.coords { - if let Some((x, y)) = painter.get_point(*x, *y) { - painter.paint(x, y, self.color); - } - } - } -} - -impl<'a> Default for Points<'a> { - fn default() -> Points<'a> { - Points { - coords: &[], - color: Color::Reset, - } - } -} -- cgit v1.3.1