@@ -44,7 +44,12 @@ pub trait GitRepository: Send + Sync {
44
44
fn create_branch ( & self , _: & str ) -> Result < ( ) > ;
45
45
fn branch_exits ( & self , _: & str ) -> Result < bool > ;
46
46
47
- fn blame ( & self , path : & Path , content : Rope , author_display_replace : Option < & str > ) -> Result < crate :: blame:: Blame > ;
47
+ fn blame (
48
+ & self ,
49
+ path : & Path ,
50
+ content : Rope ,
51
+ author_display_replace : Option < & str > ,
52
+ ) -> Result < crate :: blame:: Blame > ;
48
53
49
54
fn path ( & self ) -> PathBuf ;
50
55
}
@@ -204,7 +209,12 @@ impl GitRepository for RealGitRepository {
204
209
Ok ( ( ) )
205
210
}
206
211
207
- fn blame ( & self , path : & Path , content : Rope , author_display_replace : Option < & str > ) -> Result < crate :: blame:: Blame > {
212
+ fn blame (
213
+ & self ,
214
+ path : & Path ,
215
+ content : Rope ,
216
+ author_display_replace : Option < & str > ,
217
+ ) -> Result < crate :: blame:: Blame > {
208
218
let working_directory = self
209
219
. repository
210
220
. lock ( )
@@ -350,7 +360,12 @@ impl GitRepository for FakeGitRepository {
350
360
Ok ( ( ) )
351
361
}
352
362
353
- fn blame ( & self , path : & Path , _content : Rope , _author_replace_display : Option < & str > ) -> Result < crate :: blame:: Blame > {
363
+ fn blame (
364
+ & self ,
365
+ path : & Path ,
366
+ _content : Rope ,
367
+ _author_replace_display : Option < & str > ,
368
+ ) -> Result < crate :: blame:: Blame > {
354
369
let state = self . state . lock ( ) ;
355
370
state
356
371
. blames
0 commit comments