You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While let _f = CString::new("foo").unwrap().as_ptr(); correctly triggers temporary_cstring_as_ptr lint, let _f = CString::new("foo").expect("dummy").as_ptr() doesn't. What's the difference between unwrap and expect?