diff --git a/Cargo.lock b/Cargo.lock index f11519e..f2339ae 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -636,14 +636,14 @@ dependencies = [ [[package]] name = "turf" -version = "0.9.0" +version = "0.9.1" dependencies = [ "turf_macros", ] [[package]] name = "turf_internals" -version = "0.9.0" +version = "0.9.1" dependencies = [ "getrandom", "grass", @@ -658,7 +658,7 @@ dependencies = [ [[package]] name = "turf_macros" -version = "0.9.0" +version = "0.9.1" dependencies = [ "convert_case", "proc-macro2", diff --git a/turf_macros/src/lib.rs b/turf_macros/src/lib.rs index 2b99d05..c3afcdf 100644 --- a/turf_macros/src/lib.rs +++ b/turf_macros/src/lib.rs @@ -1,7 +1,7 @@ //! You're probably looking for `turf` instead. use convert_case::{Case, Casing}; -use std::{collections::HashMap, path::PathBuf, time::Duration}; +use std::{collections::HashMap, path::PathBuf}; use turf_internals::{CompiledStyleSheet, StyleSheetKind}; use proc_macro::TokenStream; @@ -125,11 +125,11 @@ fn to_compile_error(e: E) -> TokenStream where E: std::error::Error, { - let mut message = format!("Error: {}", e.to_string()); + let mut message = format!("Error: {}", e); let mut curr_err = e.source(); if curr_err.is_some() { - message.push_str(&format!("\nCaused by:")); + message.push_str("\nCaused by:"); } while let Some(current_error) = curr_err {