diff options
author | qkzk <qu3nt1n@gmail.com> | 2023-11-13 22:09:05 +0100 |
---|---|---|
committer | qkzk <qu3nt1n@gmail.com> | 2023-11-13 22:09:05 +0100 |
commit | 0d6c64991cbe982733ee9768073be9ce4e60b763 (patch) | |
tree | bc55f18da750d51f4e6d469ebea4626d2deac9fc /src/log.rs | |
parent | 5130e96ad24402a92c94504491d7950a2eeded86 (diff) |
Fix small bugs. Refactor. Remove .display().to_string()v0.1.24-dev
Diffstat (limited to 'src/log.rs')
-rw-r--r-- | src/log.rs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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`. |