Skip to content

Commit

Permalink
fix: line wrap
Browse files Browse the repository at this point in the history
  • Loading branch information
cnwangjie committed Apr 23, 2021
1 parent 2567a6b commit 02c52ce
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "yag"
version = "0.2.0"
version = "0.2.1"
authors = ["Wang Jie <[email protected]>"]
edition = "2018"
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2020 Wang Jie
Copyright (c) 2020-2021 Wang Jie

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
4 changes: 2 additions & 2 deletions src/command/pr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ impl<'a> Command<'a> {
.await?
.create_pull_request(&source_branch, &target_branch, &title)
.await?;
print!("{:#}", pr);
println!("{:#}", pr);
Ok(())
}

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

print!("{:#}", pr);
println!("{:#}", pr);
Ok(())
}
}
2 changes: 1 addition & 1 deletion src/structs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ impl<T> PaginationResult<T> {
impl<T: Display> Display for PaginationResult<T> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
for item in self.result.iter() {
write!(f, "{}", item)?;
writeln!(f, "{}", item)?;
}
writeln!(f, " {} {}", "total:".purple(), self.total)?;
Ok(())
Expand Down

0 comments on commit 02c52ce

Please sign in to comment.