Skip to content

Commit

Permalink
format code
Browse files Browse the repository at this point in the history
  • Loading branch information
hayatroid committed Sep 30, 2024
1 parent fa7dc02 commit 365acad
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions judge-control-app/src/custom_file/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ pub trait File: Sized + Drop {

pub trait FileFactory: Sized {
fn new(path: PathBuf) -> Result<Self>;
fn create_file<FileType: File>(&self, uuid: Uuid, args: FileType::InitArgs) -> Result<FileType>;
fn create_hardlink_of<FileType: File>(&self, uuid: Uuid, original: FileType) -> Result<FileType>;
fn create_file<FileType: File>(&self, uuid: Uuid, args: FileType::InitArgs)
-> Result<FileType>;
fn create_hardlink_of<FileType: File>(
&self,
uuid: Uuid,
original: FileType,
) -> Result<FileType>;
}

0 comments on commit 365acad

Please sign in to comment.