From 48d1c1b9f1190730e66f932a19f991554b3f1b53 Mon Sep 17 00:00:00 2001 From: flazepe Date: Thu, 1 Jun 2023 16:03:14 +0800 Subject: [PATCH] refactor!: rename `color()` to `color_viewer()` --- src/endpoints/canvas/misc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/endpoints/canvas/misc.rs b/src/endpoints/canvas/misc.rs index 8908bdf..35f7c4b 100644 --- a/src/endpoints/canvas/misc.rs +++ b/src/endpoints/canvas/misc.rs @@ -29,7 +29,7 @@ impl<'a> CanvasMiscEndpoint { } /// Generate a square image of a hex color - pub async fn color>(&self, hex: T) -> Result> { + pub async fn color_viewer>(&self, hex: T) -> Result> { self.0 .request_image( "canvas/misc/colorviewer",