Implement: Storage::createFile()
This commit is contained in:
parent
263a3b7780
commit
e623b74139
1 changed files with 2 additions and 1 deletions
|
@ -51,7 +51,8 @@ impl StorageBackend {
|
|||
self.new_file_handle().and_then(|(id, _)| Some(id))
|
||||
}
|
||||
|
||||
fn createFile() -> File {
|
||||
fn createFile(&self) -> Option<File> {
|
||||
self.new_file_handle().and_then(|(id, h)| Some(File::from_handle(id, h)))
|
||||
}
|
||||
|
||||
fn writeFile(f: File) -> BackendOperationResult {
|
||||
|
|
Loading…
Reference in a new issue