mirror of
https://github.com/librespot-org/librespot.git
synced 2025-10-05 02:39:53 +02:00
Various code improvements (#777)
* Remove deprecated use of std::u16::MAX * Use `FromStr` for fallible `&str` conversions * DRY up strings into constants * Change `as_ref().map()` into `as_deref()` * Use `Duration` for time constants and functions * Optimize `Vec` with response times * Move comments for `rustdoc` to parse
This commit is contained in:
parent
bae1834988
commit
ad19b69bfb
27 changed files with 433 additions and 309 deletions
|
@ -34,3 +34,7 @@ impl SinkAsBytes for StdoutSink {
|
|||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
impl StdoutSink {
|
||||
pub const NAME: &'static str = "pipe";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue