We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c706e65 commit f104e43Copy full SHA for f104e43
hosts-edit/src/commands/remove.rs
@@ -49,6 +49,7 @@ impl<'a> Visitor<'a> {
49
}
50
51
52
+ #[inline(always)]
53
pub /*const*/ fn get_start(&self) -> Option<usize> {
54
if self.hosts_on_line > 1 {
55
self.host_to_remove_pos.or(Some(self.start))
@@ -57,6 +58,7 @@ impl<'a> Visitor<'a> {
57
58
59
60
61
62
pub /*const*/ fn get_end(&self) -> Option<usize> {
63
64
self.host_to_remove_pos.or(Some(self.end))
@@ -65,6 +67,7 @@ impl<'a> Visitor<'a> {
65
67
66
68
69
70
71
pub fn has_found(&self) -> bool {
72
self.host_to_remove_pos.is_some()
73
0 commit comments