mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-26 19:57:25 +01:00
database: Fix some clippy warnings
This commit is contained in:
parent
f967f6ade9
commit
2b95dbeadd
3 changed files with 43 additions and 47 deletions
|
|
@ -49,11 +49,11 @@ impl Performance {
|
|||
/// Get a string representation of the performance.
|
||||
// TODO: Replace with impl Display.
|
||||
pub fn get_title(&self) -> String {
|
||||
let mut text = String::from(if self.is_person() {
|
||||
let mut text = if self.is_person() {
|
||||
self.unwrap_person().name_fl()
|
||||
} else {
|
||||
self.unwrap_ensemble().name
|
||||
});
|
||||
};
|
||||
|
||||
if self.has_role() {
|
||||
text = text + " (" + &self.unwrap_role().name + ")";
|
||||
|
|
@ -249,7 +249,7 @@ impl Database {
|
|||
let recording_description = Recording {
|
||||
id: row.id,
|
||||
work,
|
||||
comment: row.comment.clone(),
|
||||
comment: row.comment,
|
||||
performances: performance_descriptions,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue