From 76ef8e637ef2ff11d981f58f2300d0f37ba7635d Mon Sep 17 00:00:00 2001 From: Andrea Ciliberti Date: Thu, 4 May 2023 14:20:12 +0200 Subject: [PATCH] Fix merge messages --- ctru-rs/src/services/fs.rs | 24 ++++-------------------- 1 file changed, 4 insertions(+), 20 deletions(-) diff --git a/ctru-rs/src/services/fs.rs b/ctru-rs/src/services/fs.rs index d4b855e..04e0c1e 100644 --- a/ctru-rs/src/services/fs.rs +++ b/ctru-rs/src/services/fs.rs @@ -220,13 +220,13 @@ pub struct Metadata { /// ```no_run /// use ctru::services::fs::{Fs, OpenOptions}; /// -<<<<<<< HEAD -/// let fs = Fs::new().unwrap(); -/// let sdmc_archive = fs.sdmc().unwrap(); -======= /// let mut fs = Fs::new().unwrap(); +/// let mut sdmc_archive = fs.sdmc().unwrap(); +/// let file = OpenOptions::new() +/// .read(true) /// .archive(&sdmc_archive) /// .open("foo.txt") +/// .unwrap(); /// ``` /// /// Opening a file for both reading and writing, as well as creating it if it @@ -235,13 +235,8 @@ pub struct Metadata { /// ```no_run /// use ctru::services::fs::{Fs, OpenOptions}; /// -<<<<<<< HEAD -/// let fs = Fs::new().unwrap(); -/// let sdmc_archive = fs.sdmc().unwrap(); -======= /// let mut fs = Fs::new().unwrap(); /// let mut sdmc_archive = fs.sdmc().unwrap(); ->>>>>>> improve/api /// let file = OpenOptions::new() /// .read(true) /// .write(true) @@ -367,13 +362,8 @@ impl File { /// ```no_run /// use ctru::services::fs::{Fs, File}; /// -<<<<<<< HEAD - /// let fs = Fs::new().unwrap(); - /// let sdmc_archive = fs.sdmc().unwrap(); -======= /// let mut fs = Fs::new().unwrap(); /// let mut sdmc_archive = fs.sdmc().unwrap(); ->>>>>>> improve/api /// let mut f = File::open(&sdmc_archive, "/foo.txt").unwrap(); /// ``` pub fn open>(arch: &Archive, path: P) -> IoResult { @@ -401,15 +391,9 @@ impl File { /// ```no_run /// use ctru::services::fs::{Fs, File}; /// -<<<<<<< HEAD - /// let fs = Fs::new().unwrap(); - /// let sdmc_archive = fs.sdmc().unwrap(); - /// let mut f = File::create(&sdmc_archive, "/foo.txt").unwrap(); -======= /// let mut fs = Fs::new().unwrap(); /// let mut sdmc_archive = fs.sdmc().unwrap(); /// let mut f = File::create(&mut sdmc_archive, "/foo.txt").unwrap(); ->>>>>>> improve/api /// ``` pub fn create>(arch: &mut Archive, path: P) -> IoResult { OpenOptions::new()