aboutsummaryrefslogtreecommitdiff
path: root/macros/src/syntax/analyze.rs
diff options
context:
space:
mode:
authorGravatar Emil Fresk <emil.fresk@gmail.com> 2023-01-02 14:34:05 +0100
committerGravatar Henrik Tjäder <henrik@tjaders.com> 2023-03-01 00:31:01 +0100
commit582c602912592ec7ebea3096aefa02aea99c2143 (patch)
tree96b14a130788960ee06d7e80adec43a167b4844b /macros/src/syntax/analyze.rs
parent7614b96fe45240dafe91ae549e712b560e2d4c10 (diff)
downloadrtic-582c602912592ec7ebea3096aefa02aea99c2143.tar.gz
rtic-582c602912592ec7ebea3096aefa02aea99c2143.tar.zst
rtic-582c602912592ec7ebea3096aefa02aea99c2143.zip
Old xtask test pass
Diffstat (limited to 'macros/src/syntax/analyze.rs')
-rw-r--r--macros/src/syntax/analyze.rs42
1 files changed, 21 insertions, 21 deletions
diff --git a/macros/src/syntax/analyze.rs b/macros/src/syntax/analyze.rs
index 06b23f46..44960b9e 100644
--- a/macros/src/syntax/analyze.rs
+++ b/macros/src/syntax/analyze.rs
@@ -338,8 +338,8 @@ pub(crate) fn app(app: &App) -> Result<Analysis, syn::Error> {
})
}
-/// Priority ceiling
-pub type Ceiling = Option<u8>;
+// /// Priority ceiling
+// pub type Ceiling = Option<u8>;
/// Task priority
pub type Priority = u8;
@@ -427,22 +427,22 @@ pub enum Ownership {
},
}
-impl Ownership {
- /// Whether this resource needs to a lock at this priority level
- pub fn needs_lock(&self, priority: u8) -> bool {
- match self {
- Ownership::Owned { .. } | Ownership::CoOwned { .. } => false,
-
- Ownership::Contended { ceiling } => {
- debug_assert!(*ceiling >= priority);
-
- priority < *ceiling
- }
- }
- }
-
- /// Whether this resource is exclusively owned
- pub fn is_owned(&self) -> bool {
- matches!(self, Ownership::Owned { .. })
- }
-}
+// impl Ownership {
+// /// Whether this resource needs to a lock at this priority level
+// pub fn needs_lock(&self, priority: u8) -> bool {
+// match self {
+// Ownership::Owned { .. } | Ownership::CoOwned { .. } => false,
+//
+// Ownership::Contended { ceiling } => {
+// debug_assert!(*ceiling >= priority);
+//
+// priority < *ceiling
+// }
+// }
+// }
+//
+// /// Whether this resource is exclusively owned
+// pub fn is_owned(&self) -> bool {
+// matches!(self, Ownership::Owned { .. })
+// }
+// }
ild-failure Unnamed repository; edit this file 'description' to name the repository.
aboutsummaryrefslogtreecommitdiff
path: root/packages/integrations/react/README.md (unfollow)
AgeCommit message (Expand)AuthorFilesLines
2022-05-11Fix APIRoute type (#3344)Gravatar Matthew Phillips 3-11/+8
2022-05-11[create-astro] Finalize developer experience... with gradients 🚀 (#3313)Gravatar Ben Holmes 5-23/+123