Two boundary rigidity results for holomorphic maps