Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Jan 11, 2025
1 parent 3021dd0 commit 2ebaa8f
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions ee/tabby-schema/src/schema/thread/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@ use tabby_common::api::{
};
use validator::Validate;

use super::MessageAttachmentCodeInput;
use crate::{interface::UserValue, juniper::relay::NodeType, Context};

use super::{MessageAttachmentCodeInput, MessageAttachmentInput};

#[derive(GraphQLEnum, Serialize, Clone, PartialEq, Eq)]
pub enum Role {
User,
Expand Down Expand Up @@ -72,12 +71,12 @@ pub struct MessageAttachmentClientCode {
pub content: String,
}

impl Into<MessageAttachmentCodeInput> for MessageAttachmentClientCode {
fn into(self) -> MessageAttachmentCodeInput {
impl From<MessageAttachmentClientCode> for MessageAttachmentCodeInput {
fn from(val: MessageAttachmentClientCode) -> Self {
MessageAttachmentCodeInput {
filepath: self.filepath,
start_line: self.start_line,
content: self.content,
filepath: val.filepath,
start_line: val.start_line,
content: val.content,
}
}

Check warning on line 81 in ee/tabby-schema/src/schema/thread/types.rs

View check run for this annotation

Codecov / codecov/patch

ee/tabby-schema/src/schema/thread/types.rs#L75-L81

Added lines #L75 - L81 were not covered by tests
}
Expand Down

0 comments on commit 2ebaa8f

Please sign in to comment.