mirror of
https://github.com/zed-industries/zed.git
synced 2024-10-26 00:19:46 +00:00
10 lines
220 B
Rust
10 lines
220 B
Rust
|
use crate::json::ToJson;
|
||
|
pub use pathfinder_color::*;
|
||
|
use serde_json::json;
|
||
|
|
||
|
impl ToJson for ColorU {
|
||
|
fn to_json(&self) -> serde_json::Value {
|
||
|
json!(format!("0x{:x}{:x}{:x}", self.r, self.g, self.b))
|
||
|
}
|
||
|
}
|