Skip to content

Commit

Permalink
chore: fix and format
Browse files Browse the repository at this point in the history
  • Loading branch information
iamchanii committed Dec 24, 2024
1 parent 2fc0916 commit 46db874
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/core/document.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@ use std::fmt::Display;
use async_graphql::parser::types::*;
use async_graphql::Positioned;
use async_graphql_value::ConstValue;
use unicode_segmentation::UnicodeSegmentation;

use super::jit::Directive as JitDirective;
use super::json::JsonLikeOwned;

use unicode_segmentation::UnicodeSegmentation;

struct LineBreaker<'a> {
string: &'a str,
break_at: usize,
Expand Down Expand Up @@ -47,8 +46,7 @@ impl<'a> Iterator for LineBreaker<'a> {
last_valid_index += grapheme_len;
}

// 빈 공간을 찾는다.
while let Some(grapheme) = iter.next() {
for grapheme in iter {
if grapheme.chars().any(|ch| ch.is_whitespace()) {
last_valid_index += grapheme.len();
break;
Expand Down

0 comments on commit 46db874

Please sign in to comment.