tcr / parser-c

Haskell's language-c ported to Rust.
http://docs.rs/parser-c
31 stars 5 forks source link

Clean up String handling #13

Open birkenfeld opened 7 years ago

birkenfeld commented 7 years ago

Since Haskell doesn't use string slices, there's a lot of places with unnecessary .to_string() use, and functions with String instead of &str in the signature.

tcr commented 7 years ago

It just occured to me, I bet clippy would identify a ton of this excessive heap use. (One more reason to exclude parser-c-core from the root crate).

birkenfeld commented 7 years ago

I was kind of dreading running Clippy for now... :smile: