summaryrefslogtreecommitdiffstats
path: root/src/log.rs
diff options
context:
space:
mode:
authorqkzk <qu3nt1n@gmail.com>2023-11-13 22:09:05 +0100
committerqkzk <qu3nt1n@gmail.com>2023-11-13 22:09:05 +0100
commit0d6c64991cbe982733ee9768073be9ce4e60b763 (patch)
treebc55f18da750d51f4e6d469ebea4626d2deac9fc /src/log.rs
parent5130e96ad24402a92c94504491d7950a2eeded86 (diff)
Fix small bugs. Refactor. Remove .display().to_string()v0.1.24-dev
Diffstat (limited to 'src/log.rs')
-rw-r--r--src/log.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/log.rs b/src/log.rs
index c85f742..6797442 100644
--- a/src/log.rs
+++ b/src/log.rs
@@ -58,7 +58,7 @@ pub fn read_log() -> Result<Vec<String>> {
}
lazy_static! {
- static ref LAST_LOG_LINE: RwLock<String> = RwLock::new("".to_string());
+ static ref LAST_LOG_LINE: RwLock<String> = RwLock::new("".to_owned());
}
/// Read the last value of the "log line".
@@ -68,7 +68,7 @@ pub fn read_last_log_line() -> String {
let Ok(last_log_line) = LAST_LOG_LINE.read() else {
return "".to_owned();
};
- last_log_line.to_string()
+ last_log_line.to_owned()
}
/// Write a new log line to the global variable `LAST_LOG_LINE`.