change diagnostic code on CreateNotPossible

This commit is contained in:
xiuxiu62 2021-10-07 14:20:03 -07:00
parent adabc839bf
commit e8e1ead99d

View file

@ -111,7 +111,7 @@ pub enum ShellError {
MoveNotPossibleSingle(String, #[label("{0}")] Span),
#[error("Create not possible")]
#[diagnostic(code(nu::shell::move_not_possible_single), url(docsrs))]
#[diagnostic(code(nu::shell::create_not_possible), url(docsrs))]
CreateNotPossible(String, #[label("{0}")] Span),
}