Skip to content

Commit

Permalink
refactor!: rename color() to color_viewer()
Browse files Browse the repository at this point in the history
  • Loading branch information
flazepe committed Jun 1, 2023
1 parent e0ea359 commit 48d1c1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/endpoints/canvas/misc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ impl<'a> CanvasMiscEndpoint {
}

/// Generate a square image of a hex color
pub async fn color<T: TryInto<Hex>>(&self, hex: T) -> Result<Vec<u8>> {
pub async fn color_viewer<T: TryInto<Hex>>(&self, hex: T) -> Result<Vec<u8>> {
self.0
.request_image(
"canvas/misc/colorviewer",
Expand Down

0 comments on commit 48d1c1b

Please sign in to comment.