summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrotzeit <brotzeitmacher@gmail.com>2022-09-19 12:51:24 +0200
committerGitHub <noreply@github.com>2022-09-19 12:51:24 +0200
commit1d24ca2e6c18cd036f00e930cca64f44db04fb67 (patch)
tree00fd621e48118f0de4e13e2c7ceb34ceecb66dc4
parent2756f680cf3c557d282643bf0986dac7cbd20b6d (diff)
parent10be8b44085260dee68c4321e49fc98d93f3116d (diff)
downloadrust-mode-1d24ca2e6c18cd036f00e930cca64f44db04fb67.tar.gz
Merge pull request #461 from tarsiiformes/obsolete
Use line-beginning-position instead of obsolete point-at-bol
-rw-r--r--rust-mode.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/rust-mode.el b/rust-mode.el
index 47cbf62..80106b8 100644
--- a/rust-mode.el
+++ b/rust-mode.el
@@ -734,7 +734,7 @@ buffer."
(while (and (or (rust-in-str-or-cmnt)
;; Only whitespace (or nothing) from the beginning to
;; the end of the line.
- (looking-back "^\s*" (point-at-bol)))
+ (looking-back "^\s*" (line-beginning-position)))
(= (rust-paren-level) level))
(forward-line -1)
(end-of-line)))