File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -390,7 +390,7 @@ impl RemoteFile {
390390 // TODO - This passes and returns a c++ `std::vector<T>`. A BnData can be implement in rust, but the
391391 // coreAPI need to include a `FreeData` function, similar to `BNFreeString` does.
392392 // The C++ API just assumes that both use the same allocator, and the python API seems to just leak this
393- // memory, never droping it.
393+ // memory, never dropping it.
394394 //pub fn download_file<S, F>(&self, mut progress_function: F) -> BnData
395395 //where
396396 // S: BnStrCompatible,
Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ impl RemoteSnapshot {
131131 }
132132
133133 /// If the snapshot has pulled undo entries yet
134- pub fn has_pulled_undo_entires ( & self ) -> bool {
134+ pub fn has_pulled_undo_entries ( & self ) -> bool {
135135 unsafe { BNCollaborationSnapshotHasPulledUndoEntries ( self . handle . as_ptr ( ) ) }
136136 }
137137
@@ -180,7 +180,7 @@ impl RemoteSnapshot {
180180 ///
181181 /// NOTE: If undo entries have not been pulled, they will be pulled upon calling this.
182182 pub fn undo_entries ( & self ) -> Result < Array < RemoteUndoEntry > , ( ) > {
183- if !self . has_pulled_undo_entires ( ) {
183+ if !self . has_pulled_undo_entries ( ) {
184184 self . pull_undo_entries ( ) ?;
185185 }
186186 let mut count = 0 ;
@@ -198,7 +198,7 @@ impl RemoteSnapshot {
198198 & self ,
199199 id : RemoteUndoEntryId ,
200200 ) -> Result < Option < Ref < RemoteUndoEntry > > , ( ) > {
201- if !self . has_pulled_undo_entires ( ) {
201+ if !self . has_pulled_undo_entries ( ) {
202202 self . pull_undo_entries ( ) ?;
203203 }
204204 let raw = unsafe { BNCollaborationSnapshotGetUndoEntryById ( self . handle . as_ptr ( ) , id. 0 ) } ;
Original file line number Diff line number Diff line change @@ -209,7 +209,6 @@ impl FileMetadata {
209209 }
210210 }
211211
212- // TOOD:
213212 pub fn create_database ( & self , file_path : impl AsRef < Path > ) -> bool {
214213 // Databases are created with the root view (Raw).
215214 let Some ( raw_view) = self . view_of_type ( "Raw" ) else {
You can’t perform that action at this time.
0 commit comments