Remove some #[allow]s II (#2616)

Co-authored-by: Naseschwarz <naseschwarz@0x53a.de>
This commit is contained in:
Johannes Agricola 2025-04-18 09:29:06 +02:00 committed by GitHub
parent e08d954573
commit baa1822180
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 1 additions and 3 deletions

View file

@ -38,7 +38,6 @@ pub fn process_cmdline() -> Result<CliArgs> {
.get_one::<String>("directory")
.map_or_else(|| PathBuf::from("."), PathBuf::from);
#[allow(clippy::option_if_let_else)]
let repo_path = if let Some(w) = workdir {
RepoPath::Workdir { gitdir, workdir: w }
} else {

View file

@ -58,7 +58,6 @@ impl CompareDetailsComponent {
});
}
#[allow(unstable_name_collisions)]
fn get_commit_text(&self, data: &CommitDetails) -> Vec<Line> {
let mut res = vec![
Line::from(vec![

View file

@ -155,7 +155,7 @@ impl DetailsComponent {
.collect()
}
#[allow(unstable_name_collisions, clippy::too_many_lines)]
#[allow(clippy::too_many_lines)]
fn get_text_info(&self) -> Vec<Line> {
self.data.as_ref().map_or_else(Vec::new, |data| {
let mut res = vec![