Skip to content

Commit 651b889

Browse files
committed
fix: format and trim whitespace
1 parent af82ec0 commit 651b889

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

src/config/workspace.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ impl WorkspaceProtoConfigs {
2929
.output()
3030
{
3131
if output.status.success() {
32-
let p = String::from_utf8_lossy(&output.stdout).to_string();
32+
let p = String::from_utf8_lossy(&output.stdout)
33+
.trim_matches('\n')
34+
.to_string();
3335
git_root = Some(PathBuf::from(p))
3436
}
3537
}

src/context/jumpable.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
pub enum Jumpable {
22
Import(String),
3-
Identifier(String)
3+
Identifier(String),
44
}

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ use tower::ServiceBuilder;
1010
use tracing::Level;
1111

1212
mod config;
13+
mod context;
1314
mod formatter;
1415
mod lsp;
1516
mod nodekind;
@@ -18,7 +19,6 @@ mod server;
1819
mod state;
1920
mod utils;
2021
mod workspace;
21-
mod context;
2222

2323
#[tokio::main(flavor = "current_thread")]
2424
async fn main() {

0 commit comments

Comments
 (0)