fix: Final Zig 0.15.2 syntax fixes
- duckdb.zig: Remove enum values (use default) - png.zig: Mark unused bimodal params with _: - transport_skins.zig: Mark probe params with _: Refs: RFC-0015
This commit is contained in:
parent
924b330396
commit
44b37bc231
|
|
@ -179,7 +179,7 @@ pub const PngState = struct {
|
||||||
return scale / std.math.pow(f64, u, 1.0 / shape);
|
return scale / std.math.pow(f64, u, 1.0 / shape);
|
||||||
}
|
}
|
||||||
|
|
||||||
fn sampleBimodal(self: *Self, mean: f64, stddev: f64) f64 {
|
fn sampleBimodal(self: *Self, _: f64, _: f64) f64 {
|
||||||
// Two modes: small (600) and large (1440), ratio 1:3
|
// Two modes: small (600) and large (1440), ratio 1:3
|
||||||
if (self.nextF64() < 0.25) {
|
if (self.nextF64() < 0.25) {
|
||||||
// Small mode around 600 bytes
|
// Small mode around 600 bytes
|
||||||
|
|
|
||||||
|
|
@ -362,16 +362,12 @@ pub const SkinProber = struct {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
fn probeRaw(self: SkinProber, timeout_ms: u32) !bool {
|
fn probeRaw(_: SkinProber, _: u32) !bool {
|
||||||
_ = self;
|
|
||||||
_ = timeout_ms;
|
|
||||||
// TODO: Implement UDP probe
|
// TODO: Implement UDP probe
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
fn probeHttps(self: SkinProber, timeout_ms: u32) !bool {
|
fn probeHttps(_: SkinProber, _: u32) !bool {
|
||||||
_ = self;
|
|
||||||
_ = timeout_ms;
|
|
||||||
// TODO: Implement HTTPS probe
|
// TODO: Implement HTTPS probe
|
||||||
return true; // Assume HTTPS works for now
|
return true; // Assume HTTPS works for now
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -16,9 +16,9 @@ pub const Result = opaque {};
|
||||||
pub const Appender = opaque {};
|
pub const Appender = opaque {};
|
||||||
|
|
||||||
/// State types
|
/// State types
|
||||||
pub const State = enum(u32) {
|
pub const State = enum {
|
||||||
success = 0,
|
success,
|
||||||
error = 1,
|
error,
|
||||||
};
|
};
|
||||||
|
|
||||||
/// C API Functions
|
/// C API Functions
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue