Bump Rust to 1.90 (#38436)
Release Notes: - N/A --------- Co-authored-by: Nia Espera <nia@zed.dev> Co-authored-by: Julia Ryan <juliaryan3.14@gmail.com>
This commit is contained in:
co-authored by
Nia Espera
Julia Ryan
parent
46d19d8a47
commit
a90abb1009
@@ -10,6 +10,7 @@ use db::{
|
||||
use serde::{Deserialize, Serialize};
|
||||
use time::OffsetDateTime;
|
||||
|
||||
#[cfg(test)]
|
||||
#[derive(Debug, Clone, Deserialize, Serialize, PartialEq)]
|
||||
pub(crate) struct SerializedCommandInvocation {
|
||||
pub(crate) command_name: String,
|
||||
@@ -39,6 +40,7 @@ impl Column for SerializedCommandUsage {
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
impl Column for SerializedCommandInvocation {
|
||||
fn column(statement: &mut Statement, start_index: i32) -> Result<(Self, i32)> {
|
||||
let (command_name, next_index): (String, i32) = Column::column(statement, start_index)?;
|
||||
@@ -84,8 +86,9 @@ impl CommandPaletteDB {
|
||||
.await
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
query! {
|
||||
pub fn get_last_invoked(command: &str) -> Result<Option<SerializedCommandInvocation>> {
|
||||
pub(crate) fn get_last_invoked(command: &str) -> Result<Option<SerializedCommandInvocation>> {
|
||||
SELECT
|
||||
command_name,
|
||||
user_query,
|
||||
|
||||
Reference in New Issue
Block a user