#[derive(Deserialize, Debug)]
pub struct Tweet {
    pub id: i64,
    pub text: String,
}

use std::fmt::{self, Display, Formatter};
impl Display for Tweet {
    fn fmt(&self, f: &mut Formatter) -> fmt::Result {
        let mut txt = self.text.clone();
        if let Some(pos) = txt.find("#") {
            txt = txt[..pos].to_owned();
        }
        write!(f, "{}", txt)
    }
}

#[derive(Deserialize, Debug)]
pub struct Tweet {
    pub id: i64,
    pub text: String,
}

use std::fmt::{self, Display, Formatter};
impl Display for Tweet {
    fn fmt(&self, f: &mut Formatter) -> fmt::Result {
        let mut txt = self.text.clone();
        if let Some(pos) = txt.find("http") {
            txt = txt[..pos].to_owned();
        }
        write!(f, "{}", txt)
    }
}

--- 
+++ 
@@ -8,7 +8,7 @@
 impl Display for Tweet {
     fn fmt(&self, f: &mut Formatter) -> fmt::Result {
         let mut txt = self.text.clone();
-        if let Some(pos) = txt.find("http") {
+        if let Some(pos) = txt.find("#") {
             txt = txt[..pos].to_owned();
         }
         write!(f, "{}", txt)
Set tweet filter to include link
