parser-c icon indicating copy to clipboard operation
parser-c copied to clipboard

Clean up String handling

Open birkenfeld opened this issue 8 years ago • 2 comments

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.

birkenfeld avatar Jul 08 '17 06:07 birkenfeld

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).

tcr avatar Jul 10 '17 02:07 tcr

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

birkenfeld avatar Jul 10 '17 05:07 birkenfeld