Trim file name, fix rust warnings.