Radish alpha
r
rad:zwTxygwuz5LDGBq255RA2CbNGrz8
Radicle CI broker
Radicle
Git
refactor: make Worker::NAME be a static string
Lars Wirzenius committed 2 months ago
commit a7c73cece8ee4005b322b39641e7a738efe66b7a
parent a5842ff
1 file changed +1 -1
modified src/worker.rs
@@ -23,7 +23,7 @@ pub fn start_thread<W: Worker>(mut o: W) -> JoinHandle<Result<(), W::Error>> {
/// A worker thread.
pub trait Worker: Send + 'static {
    /// Name of thread, or kind of thread. Used for logging only.
-
    const NAME: &str;
+
    const NAME: &'static str;

    /// Type of error from this worker.
    type Error: std::error::Error + Send;