Incoherent derived traits (#471)
This commit is contained in:
parent
32215ec7f5
commit
0b429e5dcf
11
Cargo.toml
11
Cargo.toml
@ -65,3 +65,14 @@ tokio = { version = "0.2.11", features = ["full"] }
|
||||
futures = "0.3"
|
||||
futures-timer = "3.0"
|
||||
async-std = "1.4"
|
||||
|
||||
#
|
||||
# Examples
|
||||
#
|
||||
[[example]]
|
||||
name = "event-stream-async-std"
|
||||
required-features = ["event-stream"]
|
||||
|
||||
[[example]]
|
||||
name = "event-stream-tokio"
|
||||
required-features = ["event-stream"]
|
||||
|
@ -377,7 +377,7 @@ impl Command for SetAttributes {
|
||||
/// # Notes
|
||||
///
|
||||
/// Commands must be executed/queued for execution otherwise they do nothing.
|
||||
#[derive(Debug, Clone)]
|
||||
#[derive(Debug, Copy, Clone)]
|
||||
pub struct PrintStyledContent<D: Display + Clone>(pub StyledContent<D>);
|
||||
|
||||
impl<D> Command for PrintStyledContent<D>
|
||||
|
@ -5,7 +5,7 @@ use std::fmt::Display;
|
||||
use crate::style::{Attribute, Attributes, Color, StyledContent};
|
||||
|
||||
/// The style that can be put on content.
|
||||
#[derive(Debug, Clone, Default)]
|
||||
#[derive(Debug, Copy, Clone, Default)]
|
||||
pub struct ContentStyle {
|
||||
/// The foreground color.
|
||||
pub foreground_color: Option<Color>,
|
||||
|
@ -27,7 +27,7 @@ use crate::{
|
||||
///
|
||||
/// println!("{}", styled);
|
||||
/// ```
|
||||
#[derive(Clone, Debug)]
|
||||
#[derive(Copy, Clone, Debug)]
|
||||
pub struct StyledContent<D: Display> {
|
||||
/// The style (colors, content attributes).
|
||||
style: ContentStyle,
|
||||
|
Loading…
Reference in New Issue
Block a user