From 4f3aa567a8501f0e90ac6e65801654c8816652a8 Mon Sep 17 00:00:00 2001 From: dachrisch Date: Sat, 3 Aug 2024 18:35:42 +0200 Subject: [PATCH 1/2] Add .idea to .gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 571ec27..0e34771 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /target notes.txt *.tar +.idea From 8184683b1eecf66d679a6d9ec570ebbcb16f3588 Mon Sep 17 00:00:00 2001 From: dachrisch Date: Sat, 3 Aug 2024 18:36:29 +0200 Subject: [PATCH 2/2] fixed warning: `&` without an explicit lifetime name cannot be used here --- src/common/drive_file.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/drive_file.rs b/src/common/drive_file.rs index 6278b63..69a6c8f 100644 --- a/src/common/drive_file.rs +++ b/src/common/drive_file.rs @@ -61,7 +61,7 @@ pub enum DocType { } impl DocType { - const IMPORT_EXTENSION_MAP: &[(FileExtension, DocType)] = &[ + const IMPORT_EXTENSION_MAP: &'static [(FileExtension, DocType)] = &[ (FileExtension::Doc, DocType::Document), (FileExtension::Docx, DocType::Document), (FileExtension::Odt, DocType::Document),