Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
1use crate::json::ToJson; 2pub use pathfinder_color::*; 3use serde_json::json; 4 5impl ToJson for ColorU { 6 fn to_json(&self) -> serde_json::Value { 7 json!(format!("0x{:x}{:x}{:x}", self.r, self.g, self.b)) 8 } 9}