Skip to content

Commit 02c52ce

Browse files
committed
fix: line wrap
1 parent 2567a6b commit 02c52ce

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "yag"
3-
version = "0.2.0"
3+
version = "0.2.1"
44
authors = ["Wang Jie <[email protected]>"]
55
edition = "2018"
66
license = "MIT"

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2020 Wang Jie
3+
Copyright (c) 2020-2021 Wang Jie
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

src/command/pr.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ impl<'a> Command<'a> {
143143
.await?
144144
.create_pull_request(&source_branch, &target_branch, &title)
145145
.await?;
146-
print!("{:#}", pr);
146+
println!("{:#}", pr);
147147
Ok(())
148148
}
149149

@@ -155,7 +155,7 @@ impl<'a> Command<'a> {
155155
.unwrap();
156156
let pr = get_repo().await?.close_pull_request(id).await?;
157157

158-
print!("{:#}", pr);
158+
println!("{:#}", pr);
159159
Ok(())
160160
}
161161
}

src/structs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ impl<T> PaginationResult<T> {
1919
impl<T: Display> Display for PaginationResult<T> {
2020
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
2121
for item in self.result.iter() {
22-
write!(f, "{}", item)?;
22+
writeln!(f, "{}", item)?;
2323
}
2424
writeln!(f, " {} {}", "total:".purple(), self.total)?;
2525
Ok(())

0 commit comments

Comments
 (0)