From aa3ba875dd3b755c8b46a8b46690faf640d7c698 Mon Sep 17 00:00:00 2001 From: Dmitry Date: Wed, 16 Aug 2023 09:09:51 +0300 Subject: [PATCH] fix clippy warn warning: the borrowed expression implements the required traits --- src/config.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.rs b/src/config.rs index a562ef0..f9b71ef 100644 --- a/src/config.rs +++ b/src/config.rs @@ -72,7 +72,7 @@ impl Config { fn write>(&self, path: P) -> Result<(), String> { let data = toml::to_string_pretty(&self) .map_err(|e| format!("can't serialize config: {:?}", e))?; - fs::write(path, &data).map_err(|e| format!("can't write config: {:?}", e)) + fs::write(path, data).map_err(|e| format!("can't write config: {:?}", e)) } fn file_location() -> Result { let res = env::current_exe()