fn serialize_resolve(resolve: &Resolve, orig: Option<&str>) -> String