Use as_deref() to replace as_ref().map(...)
#67897
Merged
as_deref() to replace as_ref().map(...)
#67897