diff options
author | lafleur <lafleur@boum.org> | 2021-11-02 21:34:21 +0100 |
---|---|---|
committer | lafleur <lafleur@boum.org> | 2021-11-02 21:34:21 +0100 |
commit | 82432a1aede0f72484b7b1453e2f563817ea1f06 (patch) | |
tree | 1676bc983980c850aa82342b967a0b9823616080 /rustables/src | |
parent | b70868d53ed1729d4fa45ee1ee12e3b82e59ae15 (diff) |
forbid instanciating LogPrefix directly
Diffstat (limited to 'rustables/src')
-rw-r--r-- | rustables/src/expr/log.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rustables/src/expr/log.rs b/rustables/src/expr/log.rs index 614e340..aa7a8b7 100644 --- a/rustables/src/expr/log.rs +++ b/rustables/src/expr/log.rs @@ -50,8 +50,8 @@ pub enum LogPrefixError { pub struct LogGroup(pub u16); /// A prefix that will get prepended to each log line. -#[derive(Clone)] -pub struct LogPrefix(pub CString); +#[derive(Debug, Clone, PartialEq)] +pub struct LogPrefix(CString); impl LogPrefix { /// Create a new LogPrefix from a String. Converts it to CString as needed by nftnl. Note |