File tree Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -48,22 +48,15 @@ use crate::{
48
48
} ;
49
49
50
50
pub trait HirWrite : fmt:: Write {
51
- fn start_location_link ( & mut self , location : ModuleDefId ) ;
52
- fn end_location_link ( & mut self ) ;
51
+ fn start_location_link ( & mut self , _location : ModuleDefId ) { }
52
+ fn end_location_link ( & mut self ) { }
53
53
}
54
54
55
55
// String will ignore link metadata
56
- impl HirWrite for String {
57
- fn start_location_link ( & mut self , _: ModuleDefId ) { }
58
-
59
- fn end_location_link ( & mut self ) { }
60
- }
56
+ impl HirWrite for String { }
61
57
62
58
// `core::Formatter` will ignore metadata
63
- impl HirWrite for fmt:: Formatter < ' _ > {
64
- fn start_location_link ( & mut self , _: ModuleDefId ) { }
65
- fn end_location_link ( & mut self ) { }
66
- }
59
+ impl HirWrite for fmt:: Formatter < ' _ > { }
67
60
68
61
pub struct HirFormatter < ' a > {
69
62
pub db : & ' a dyn HirDatabase ,
You can’t perform that action at this time.
0 commit comments