@ -49,7 +49,7 @@ impl HorizontalLine {
}
impl<'s> Shape<'s> for HorizontalLine {
fn bounds(&self, _cache: &DrawingCache<'s>) -> Rect {
fn bounds(&self) -> Rect {
let size = Offset::new(self.length, self.thickness as i16);
Rect::from_top_left_and_size(self.pos, size)
@ -82,7 +82,7 @@ impl LoaderCircular {
impl<'s> Shape<'s> for LoaderCircular {
let cells = self.cells();
if cells.is_empty() {
@ -53,7 +53,7 @@ impl LoaderSmall {
impl Shape<'_> for LoaderSmall {
fn bounds(&self, _cache: &DrawingCache) -> Rect {
Rect::from_top_left_and_size(self.pos, Offset::uniform(1)).expand(RADIUS + 1)
@ -72,7 +72,7 @@ impl LoaderStarry {
impl Shape<'_> for LoaderStarry {
Rect::from_top_left_and_size(self.pos, Offset::uniform(1)).expand(RADIUS + STAR_LARGE)