mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Use appropriate QoS classes throughout the codebase
This commit is contained in:
parent
2924fd2213
commit
d0b001eed2
9 changed files with 20 additions and 19 deletions
|
@ -155,8 +155,6 @@ pub enum QoSClass {
|
|||
/// performance, responsiveness and efficiency.
|
||||
Utility,
|
||||
|
||||
Default,
|
||||
|
||||
/// TLDR: tasks that block using your app
|
||||
///
|
||||
/// Contract:
|
||||
|
@ -234,7 +232,6 @@ mod imp {
|
|||
let c = match class {
|
||||
QoSClass::UserInteractive => libc::qos_class_t::QOS_CLASS_USER_INTERACTIVE,
|
||||
QoSClass::UserInitiated => libc::qos_class_t::QOS_CLASS_USER_INITIATED,
|
||||
QoSClass::Default => libc::qos_class_t::QOS_CLASS_DEFAULT,
|
||||
QoSClass::Utility => libc::qos_class_t::QOS_CLASS_UTILITY,
|
||||
QoSClass::Background => libc::qos_class_t::QOS_CLASS_BACKGROUND,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue