Another few renames

This commit is contained in:
Lyssieth 2024-12-07 04:29:20 +02:00
parent 5e92771aef
commit ce5c58900b
Signed by untrusted user who does not match committer: lyssieth
GPG key ID: 200268854934CFAB

View file

@ -1,7 +1,7 @@
const std = @import("std"); const std = @import("std");
const cham = @import("chameleon"); const cham = @import("chameleon");
const TrackedString = @import("../util/utils.zig").TrackedString; const SmartString = @import("../util/utils.zig").SmartString;
const log = std.log; const log = std.log;
@ -20,10 +20,10 @@ pub const Color = enum {
}; };
pub const ScopeModifier = struct { pub const ScopeModifier = struct {
scope: TrackedString, scope: SmartString,
color: ?Color = .default, color: ?Color = .default,
bright: bool = false, bright: bool = false,
rename: ?TrackedString = null, rename: ?SmartString = null,
}; };
const Allocator = std.mem.Allocator; const Allocator = std.mem.Allocator;
@ -238,13 +238,13 @@ test "logFn works" {
defer deinit(); defer deinit();
try config.addScope(.{ try config.addScope(.{
.scope = TrackedString.constant("someScope"), .scope = SmartString.constant("someScope"),
.rename = TrackedString.constant("some rename"), .rename = SmartString.constant("some rename"),
.color = .green, .color = .green,
}); });
try config.addScope(.{ try config.addScope(.{
.scope = TrackedString.constant("other"), .scope = SmartString.constant("other"),
.rename = TrackedString.constant("other rename"), .rename = SmartString.constant("other rename"),
.color = .blue, .color = .blue,
}); });