From 62e5cccff394abf7ef14d49c10e75deaa619db3e Mon Sep 17 00:00:00 2001 From: Fenrir Date: Mon, 1 Aug 2016 21:41:02 -0700 Subject: [PATCH] Rename ::new() to ::init() --- src/sdmc.rs | 2 +- src/services/apt.rs | 2 +- src/services/hid.rs | 2 +- src/srv.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/sdmc.rs b/src/sdmc.rs index 5e98552..75a58a9 100644 --- a/src/sdmc.rs +++ b/src/sdmc.rs @@ -7,7 +7,7 @@ pub struct Sdmc { } impl Sdmc { - pub fn new() -> Result { + pub fn init() -> Result { unsafe { let r = sdmcInit(); if r < 0 { diff --git a/src/services/apt.rs b/src/services/apt.rs index 8f50570..28e0500 100644 --- a/src/services/apt.rs +++ b/src/services/apt.rs @@ -55,7 +55,7 @@ pub struct Apt { } impl Apt { - pub fn new() -> Result { + pub fn init() -> Result { unsafe { let r = apt::aptInit(); if r < 0 { diff --git a/src/services/hid.rs b/src/services/hid.rs index 1719c32..1b90194 100644 --- a/src/services/hid.rs +++ b/src/services/hid.rs @@ -78,7 +78,7 @@ pub struct Hid { } impl Hid { - pub fn new() -> Result { + pub fn init() -> Result { unsafe { let r = hid::hidInit(); if r < 0 { diff --git a/src/srv.rs b/src/srv.rs index bb1bb59..9c4388c 100644 --- a/src/srv.rs +++ b/src/srv.rs @@ -7,7 +7,7 @@ pub struct Srv { } impl Srv { - pub fn new() -> Result { + pub fn init() -> Result { unsafe { let r = srvInit(); if r < 0 {