Radish alpha
r
Radicle CI broker
Radicle
Git (anonymous pull)
Log in to clone via SSH
refactor: make Worker::NAME be a static string
Lars Wirzenius committed 3 months ago
commit a7c73cece8ee4005b322b39641e7a738efe66b7a
parent a5842ff37d4a69eb4d31a39c358712dfed8ef376
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;