Skip to content

Commit f332d2f

Browse files
committed
fix: drop s library dependency
The function `s-equals-p` from the s library was referenced in the code but the dependency had not been declared. Since the referenced function is nothing but a wrapper around `string-equal` (see below), this commit refactors the code to call `string-equal` directly and drop the dependency altogether. (defun s-equals? (s1 s2) "Is S1 equal to S2? This is a simple wrapper around the built-in `string-equal'." (declare (pure t) (side-effect-free t)) (string-equal s1 s2))
1 parent 4f51b3c commit f332d2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

copilot.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,7 @@ automatically, browse to %s." user-code verification-uri))
743743
(setq copilot--completion-cache result))
744744
(let ((completions (cl-remove-duplicates (plist-get result :completions)
745745
:key (lambda (x) (plist-get x :text))
746-
:test #'s-equals-p)))
746+
:test #'string-equal)))
747747
(cond ((seq-empty-p completions)
748748
(copilot--log 'warning "No completion is available."))
749749
((= (length completions) 1)

0 commit comments

Comments
 (0)