Migrate pipelines to Woodpecker (#1)
All checks were successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/all-checks-complete Pipeline was successful

Co-authored-by: Smaug123 <patrick+github@patrickstevens.co.uk>
Reviewed-on: #1
This commit is contained in:
2023-07-25 07:17:09 +00:00
parent da72fb5482
commit f11d861eef
13 changed files with 66 additions and 0 deletions

View File

@@ -350,6 +350,7 @@ where
}
impl JsonValue {
#[must_use]
pub fn as_number(&self) -> f64 {
match self {
JsonValue::Number(f) => *f,
@@ -357,6 +358,7 @@ impl JsonValue {
}
}
#[must_use]
pub fn as_object(&self) -> &HashMap<String, JsonValue> {
match self {
JsonValue::Object(o) => &o.values,
@@ -364,6 +366,7 @@ impl JsonValue {
}
}
#[must_use]
pub fn as_array(&self) -> &Vec<JsonValue> {
match self {
JsonValue::Array(a) => a,