Compare commits

..

No commits in common. "8c353259505946df2e79f4c649ce4be5ddb20994" and "cd41376c2205b619ea07c9441613536da485d21e" have entirely different histories.

View file

@ -84,24 +84,6 @@ pub struct Line {
pub content: String,
}
impl Line {
pub fn from_stdout<S: AsRef<str>>(content: S) -> Self {
return Line {
content: content.as_ref().to_string(),
printed_to: LineType::Stdout,
time: Instant::now(),
};
}
pub fn from_stderr<S: AsRef<str>>(content: S) -> Self {
return Line {
content: content.as_ref().to_string(),
printed_to: LineType::Stderr,
time: Instant::now(),
};
}
}
impl PartialOrd for Line {
fn ge(&self, other: &Line) -> bool {
if self.time >= other.time {