mirror of
https://github.com/szymon-jozef/libnotify-rs.git
synced 2026-10-28 11:10:43 +01:00
fix: formatting
This commit is contained in:
@@ -14,10 +14,7 @@ pub fn init<'a, T>(app_name: T) -> Result<(), Box<dyn std::error::Error>>
|
||||
where
|
||||
T: Into<Option<&'a str>>,
|
||||
{
|
||||
let app_name = app_name
|
||||
.into()
|
||||
.map(std::ffi::CString::new)
|
||||
.transpose()?;
|
||||
let app_name = app_name.into().map(std::ffi::CString::new).transpose()?;
|
||||
|
||||
if unsafe {
|
||||
notify_init(
|
||||
|
||||
Reference in New Issue
Block a user