diff --git a/src/gif.rs b/src/gif.rs index 2bb5d09..5de307e 100644 --- a/src/gif.rs +++ b/src/gif.rs @@ -1,4 +1,4 @@ -use serde::{Deserialize, Serialize}; +use serde::Deserialize; use std::collections::HashMap; #[derive(Deserialize)] diff --git a/src/main.rs b/src/main.rs index b83fb14..84d5a13 100644 --- a/src/main.rs +++ b/src/main.rs @@ -109,6 +109,7 @@ impl MatrixClient { "mimetype": "image/gif", "size": gif.size, "h": gif.height, + "w": gif.width, }, "url": mxc_uri, "body": "nvim-bot-gif.gif",