Skip to content

remove option from version::get #288

remove option from version::get

remove option from version::get #288

Triggered via push September 27, 2023 18:27
Status Failure
Total duration 8m 47s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

test.yaml

on: push
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

37 errors and 46 warnings
this argument is a mutable reference, but not used mutably: bin/src/modules/hook/libraries/vfs/path.rs#L51
error: this argument is a mutable reference, but not used mutably --> bin/src/modules/hook/libraries/vfs/path.rs:51:24 | 51 | pub fn _move(path: &mut VfsPath, other: VfsPath) -> Result<bool, Box<EvalAltResult>> { | ^^^^^^^^^^^^ help: consider changing to: `&VfsPath` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_ref_mut
this argument is a mutable reference, but not used mutably: bin/src/modules/hook/libraries/vfs/path.rs#L37
error: this argument is a mutable reference, but not used mutably --> bin/src/modules/hook/libraries/vfs/path.rs:37:23 | 37 | pub fn copy(path: &mut VfsPath, other: VfsPath) -> Result<bool, Box<EvalAltResult>> { | ^^^^^^^^^^^^ help: consider changing to: `&VfsPath` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_ref_mut
this argument is a mutable reference, but not used mutably: bin/src/modules/hook/libraries/vfs/path.rs#L32
error: this argument is a mutable reference, but not used mutably --> bin/src/modules/hook/libraries/vfs/path.rs:32:28 | 32 | pub fn to_string(path: &mut VfsPath) -> String { | ^^^^^^^^^^^^ help: consider changing to: `&VfsPath` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_ref_mut
this argument is a mutable reference, but not used mutably: bin/src/modules/hook/libraries/vfs/path.rs#L27
error: this argument is a mutable reference, but not used mutably --> bin/src/modules/hook/libraries/vfs/path.rs:27:26 | 27 | pub fn is_file(path: &mut VfsPath) -> Result<bool, Box<EvalAltResult>> { | ^^^^^^^^^^^^ help: consider changing to: `&VfsPath` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_ref_mut
this argument is a mutable reference, but not used mutably: bin/src/modules/hook/libraries/vfs/path.rs#L22
error: this argument is a mutable reference, but not used mutably --> bin/src/modules/hook/libraries/vfs/path.rs:22:25 | 22 | pub fn is_dir(path: &mut VfsPath) -> Result<bool, Box<EvalAltResult>> { | ^^^^^^^^^^^^ help: consider changing to: `&VfsPath` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_ref_mut
this argument is a mutable reference, but not used mutably: bin/src/modules/hook/libraries/vfs/path.rs#L17
error: this argument is a mutable reference, but not used mutably --> bin/src/modules/hook/libraries/vfs/path.rs:17:25 | 17 | pub fn exists(path: &mut VfsPath) -> Result<bool, Box<EvalAltResult>> { | ^^^^^^^^^^^^ help: consider changing to: `&VfsPath` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_ref_mut
this argument is a mutable reference, but not used mutably: bin/src/modules/hook/libraries/vfs/path.rs#L12
error: this argument is a mutable reference, but not used mutably --> bin/src/modules/hook/libraries/vfs/path.rs:12:23 | 12 | pub fn join(path: &mut VfsPath, other: &str) -> Result<VfsPath, Box<EvalAltResult>> { | ^^^^^^^^^^^^ help: consider changing to: `&VfsPath` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_ref_mut
this argument is a mutable reference, but not used mutably: bin/src/modules/hook/libraries/vfs/file.rs#L52
error: this argument is a mutable reference, but not used mutably --> bin/src/modules/hook/libraries/vfs/file.rs:52:24 | 52 | pub fn write(file: &mut WriteFile, data: &str) -> Result<(), Box<EvalAltResult>> { | ^^^^^^^^^^^^^^ help: consider changing to: `&WriteFile` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_ref_mut
this argument is a mutable reference, but not used mutably: bin/src/modules/hook/libraries/vfs/file.rs#L42
error: this argument is a mutable reference, but not used mutably --> bin/src/modules/hook/libraries/vfs/file.rs:42:23 | 42 | pub fn read(file: &mut ReadFile) -> Result<String, Box<EvalAltResult>> { | ^^^^^^^^^^^^^ help: consider changing to: `&ReadFile` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_ref_mut
this argument is a mutable reference, but not used mutably: bin/src/modules/hook/libraries/vfs/file.rs#L37
error: this argument is a mutable reference, but not used mutably --> bin/src/modules/hook/libraries/vfs/file.rs:37:30 | 37 | pub fn remove_file(path: &mut VfsPath) -> Result<(), Box<EvalAltResult>> { | ^^^^^^^^^^^^ help: consider changing to: `&VfsPath` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_ref_mut
this argument is a mutable reference, but not used mutably: bin/src/modules/hook/libraries/vfs/file.rs#L30
error: this argument is a mutable reference, but not used mutably --> bin/src/modules/hook/libraries/vfs/file.rs:30:30 | 30 | pub fn create_file(path: &mut VfsPath) -> Result<WriteFile, Box<EvalAltResult>> { | ^^^^^^^^^^^^ help: consider changing to: `&VfsPath` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_ref_mut
this argument is a mutable reference, but not used mutably: bin/src/modules/hook/libraries/vfs/file.rs#L23
error: this argument is a mutable reference, but not used mutably --> bin/src/modules/hook/libraries/vfs/file.rs:23:28 | 23 | pub fn open_file(path: &mut VfsPath) -> Result<ReadFile, Box<EvalAltResult>> { | ^^^^^^^^^^^^ help: consider changing to: `&VfsPath` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_ref_mut
this argument is a mutable reference, but not used mutably: bin/src/modules/hook/libraries/version.rs#L41
error: this argument is a mutable reference, but not used mutably --> bin/src/modules/hook/libraries/version.rs:41:27 | 41 | pub fn build(version: &mut Version) -> i64 { | ^^^^^^^^^^^^ help: consider changing to: `&Version` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_ref_mut
this argument is a mutable reference, but not used mutably: bin/src/modules/hook/libraries/version.rs#L36
error: this argument is a mutable reference, but not used mutably --> bin/src/modules/hook/libraries/version.rs:36:27 | 36 | pub fn patch(version: &mut Version) -> i64 { | ^^^^^^^^^^^^ help: consider changing to: `&Version` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_ref_mut
this argument is a mutable reference, but not used mutably: bin/src/modules/hook/libraries/version.rs#L31
error: this argument is a mutable reference, but not used mutably --> bin/src/modules/hook/libraries/version.rs:31:27 | 31 | pub fn minor(version: &mut Version) -> i64 { | ^^^^^^^^^^^^ help: consider changing to: `&Version` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_ref_mut
this argument is a mutable reference, but not used mutably: bin/src/modules/hook/libraries/version.rs#L26
error: this argument is a mutable reference, but not used mutably --> bin/src/modules/hook/libraries/version.rs:26:27 | 26 | pub fn major(version: &mut Version) -> i64 { | ^^^^^^^^^^^^ help: consider changing to: `&Version` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_ref_mut
this argument is a mutable reference, but not used mutably: bin/src/modules/hook/libraries/version.rs#L16
error: this argument is a mutable reference, but not used mutably --> bin/src/modules/hook/libraries/version.rs:16:37 | 16 | pub fn to_string_short(version: &mut Version) -> String { | ^^^^^^^^^^^^ help: consider changing to: `&Version` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_ref_mut
this argument is a mutable reference, but not used mutably: bin/src/modules/hook/libraries/version.rs#L11
error: this argument is a mutable reference, but not used mutably --> bin/src/modules/hook/libraries/version.rs:11:31 | 11 | pub fn to_string(version: &mut Version) -> String { | ^^^^^^^^^^^^ help: consider changing to: `&Version` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_ref_mut
this argument is a mutable reference, but not used mutably: bin/src/modules/hook/libraries/rfs/path.rs#L32
error: this argument is a mutable reference, but not used mutably --> bin/src/modules/hook/libraries/rfs/path.rs:32:28 | 32 | pub fn to_string(path: &mut PathBuf) -> String { | ^^^^^^^^^^^^ help: consider changing to: `&PathBuf` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_ref_mut
this argument is a mutable reference, but not used mutably: bin/src/modules/hook/libraries/rfs/path.rs#L27
error: this argument is a mutable reference, but not used mutably --> bin/src/modules/hook/libraries/rfs/path.rs:27:26 | 27 | pub fn is_file(path: &mut PathBuf) -> bool { | ^^^^^^^^^^^^ help: consider changing to: `&PathBuf` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_ref_mut
this argument is a mutable reference, but not used mutably: bin/src/modules/hook/libraries/rfs/path.rs#L22
error: this argument is a mutable reference, but not used mutably --> bin/src/modules/hook/libraries/rfs/path.rs:22:25 | 22 | pub fn is_dir(path: &mut PathBuf) -> bool { | ^^^^^^^^^^^^ help: consider changing to: `&PathBuf` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_ref_mut
this argument is a mutable reference, but not used mutably: bin/src/modules/hook/libraries/rfs/path.rs#L17
error: this argument is a mutable reference, but not used mutably --> bin/src/modules/hook/libraries/rfs/path.rs:17:25 | 17 | pub fn exists(path: &mut PathBuf) -> bool { | ^^^^^^^^^^^^ help: consider changing to: `&PathBuf` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_ref_mut
this argument is a mutable reference, but not used mutably: bin/src/modules/hook/libraries/rfs/path.rs#L12
error: this argument is a mutable reference, but not used mutably --> bin/src/modules/hook/libraries/rfs/path.rs:12:23 | 12 | pub fn join(path: &mut PathBuf, other: &str) -> PathBuf { | ^^^^^^^^^^^^ help: consider changing to: `&PathBuf` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_ref_mut
this argument is a mutable reference, but not used mutably: bin/src/modules/hook/libraries/rfs/file.rs#L50
error: this argument is a mutable reference, but not used mutably --> bin/src/modules/hook/libraries/rfs/file.rs:50:24 | 50 | pub fn write(file: &mut WriteFile, data: &str) -> Result<(), Box<EvalAltResult>> { | ^^^^^^^^^^^^^^ help: consider changing to: `&WriteFile` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_ref_mut
this argument is a mutable reference, but not used mutably: bin/src/modules/hook/libraries/rfs/file.rs#L40
error: this argument is a mutable reference, but not used mutably --> bin/src/modules/hook/libraries/rfs/file.rs:40:23 | 40 | pub fn read(file: &mut ReadFile) -> Result<String, Box<EvalAltResult>> { | ^^^^^^^^^^^^^ help: consider changing to: `&ReadFile` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_ref_mut
this argument is a mutable reference, but not used mutably: bin/src/modules/hook/libraries/project.rs#L44
error: this argument is a mutable reference, but not used mutably --> bin/src/modules/hook/libraries/project.rs:44:29 | 44 | pub fn version(project: &mut RhaiProject) -> Version { | ^^^^^^^^^^^^^^^^ help: consider changing to: `&RhaiProject` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_ref_mut
this argument is a mutable reference, but not used mutably: bin/src/modules/hook/libraries/project.rs#L39
error: this argument is a mutable reference, but not used mutably --> bin/src/modules/hook/libraries/project.rs:39:28 | 39 | pub fn prefix(project: &mut RhaiProject) -> String { | ^^^^^^^^^^^^^^^^ help: consider changing to: `&RhaiProject` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_ref_mut
this argument is a mutable reference, but not used mutably: bin/src/modules/hook/libraries/project.rs#L34
error: this argument is a mutable reference, but not used mutably --> bin/src/modules/hook/libraries/project.rs:34:26 | 34 | pub fn name(project: &mut RhaiProject) -> String { | ^^^^^^^^^^^^^^^^ help: consider changing to: `&RhaiProject` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_ref_mut
this argument is a mutable reference, but not used mutably: bin/src/modules/hook/libraries/hemtt.rs#L62
error: this argument is a mutable reference, but not used mutably --> bin/src/modules/hook/libraries/hemtt.rs:62:30 | 62 | pub fn is_release(hemtt: &mut RhaiHemtt) -> bool { | ^^^^^^^^^^^^^^ help: consider changing to: `&RhaiHemtt` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_ref_mut
this argument is a mutable reference, but not used mutably: bin/src/modules/hook/libraries/hemtt.rs#L57
error: this argument is a mutable reference, but not used mutably --> bin/src/modules/hook/libraries/hemtt.rs:57:28 | 57 | pub fn is_build(hemtt: &mut RhaiHemtt) -> bool { | ^^^^^^^^^^^^^^ help: consider changing to: `&RhaiHemtt` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_ref_mut
this argument is a mutable reference, but not used mutably: bin/src/modules/hook/libraries/hemtt.rs#L52
error: this argument is a mutable reference, but not used mutably --> bin/src/modules/hook/libraries/hemtt.rs:52:29 | 52 | pub fn is_launch(hemtt: &mut RhaiHemtt) -> bool { | ^^^^^^^^^^^^^^ help: consider changing to: `&RhaiHemtt` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_ref_mut
this argument is a mutable reference, but not used mutably: bin/src/modules/hook/libraries/hemtt.rs#L47
error: this argument is a mutable reference, but not used mutably --> bin/src/modules/hook/libraries/hemtt.rs:47:26 | 47 | pub fn is_dev(hemtt: &mut RhaiHemtt) -> bool { | ^^^^^^^^^^^^^^ help: consider changing to: `&RhaiHemtt` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_ref_mut
this argument is a mutable reference, but not used mutably: bin/src/modules/hook/libraries/hemtt.rs#L42
error: this argument is a mutable reference, but not used mutably --> bin/src/modules/hook/libraries/hemtt.rs:42:24 | 42 | pub fn mode(hemtt: &mut RhaiHemtt) -> String { | ^^^^^^^^^^^^^^ help: consider changing to: `&RhaiHemtt` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_ref_mut
this argument is a mutable reference, but not used mutably: bin/src/modules/hook/libraries/hemtt.rs#L37
error: this argument is a mutable reference, but not used mutably --> bin/src/modules/hook/libraries/hemtt.rs:37:27 | 37 | pub fn project(hemtt: &mut RhaiHemtt) -> RhaiProject { | ^^^^^^^^^^^^^^ help: consider changing to: `&RhaiHemtt` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_ref_mut
this argument is a mutable reference, but not used mutably: bin/src/modules/hook/libraries/hemtt.rs#L32
error: this argument is a mutable reference, but not used mutably --> bin/src/modules/hook/libraries/hemtt.rs:32:27 | 32 | pub fn version(hemtt: &mut RhaiHemtt) -> Version { | ^^^^^^^^^^^^^^ help: consider changing to: `&RhaiHemtt` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_ref_mut note: the lint level is defined here --> bin/src/lib.rs:1:9 | 1 | #![deny(clippy::all, clippy::nursery)] | ^^^^^^^^^^^ = note: `#[deny(clippy::needless_pass_by_ref_mut)]` implied by `#[deny(clippy::all)]`
windows / beta
Process completed with exit code 1.
windows / stable
Process completed with exit code 1.
docs for function which may panic missing `# Panics` section: bin/src/modules/new/license.rs#L9
warning: docs for function which may panic missing `# Panics` section --> bin/src/modules/new/license.rs:9:5 | 9 | pub fn select(author: &str) -> Option<String> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: first possible panic found here --> bin/src/modules/new/license.rs:21:25 | 21 | let selection = dialoguer::Select::new() | _________________________^ 22 | | .with_prompt("Select a license") 23 | | .items(&licenses) 24 | | .default(0) 25 | | .interact() 26 | | .unwrap(); | |_____________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_panics_doc
docs for function returning `Result` missing `# Errors` section: bin/src/modules/pbo.rs#L30
warning: docs for function returning `Result` missing `# Errors` section --> bin/src/modules/pbo.rs:30:1 | 30 | pub fn build(ctx: &Context, collapse: Collapse) -> Result<(), Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
docs for function returning `Result` missing `# Errors` section: bin/src/modules/hook/mod.rs#L113
warning: docs for function returning `Result` missing `# Errors` section --> bin/src/modules/hook/mod.rs:113:5 | 113 | pub fn run_file(ctx: &Context, name: &str) -> Result<(), Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
docs for function returning `Result` missing `# Errors` section: bin/src/modules/hook/mod.rs#L72
warning: docs for function returning `Result` missing `# Errors` section --> bin/src/modules/hook/mod.rs:72:5 | 72 | pub fn run_folder(self, ctx: &Context, name: &str, vfs: bool) -> Result<(), Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
docs for function which may panic missing `# Panics` section: bin/src/modules/hook/mod.rs#L72
warning: docs for function which may panic missing `# Panics` section --> bin/src/modules/hook/mod.rs:72:5 | 72 | pub fn run_folder(self, ctx: &Context, name: &str, vfs: bool) -> Result<(), Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: first possible panic found here --> bin/src/modules/hook/mod.rs:103:21 | 103 | file.file_name().to_str().expect("Invalid file name") | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_panics_doc
docs for function returning `Result` missing `# Errors` section: bin/src/modules/hook/mod.rs#L17
warning: docs for function returning `Result` missing `# Errors` section --> bin/src/modules/hook/mod.rs:17:1 | 17 | pub fn scope(ctx: &Context, vfs: bool) -> Result<Scope, Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
docs for function returning `Result` missing `# Errors` section: bin/src/modules/archive.rs#L5
warning: docs for function returning `Result` missing `# Errors` section --> bin/src/modules/archive.rs:5:1 | 5 | pub fn release(ctx: &Context) -> Result<(), Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
docs for function which may panic missing `# Panics` section: bin/src/modules/archive.rs#L5
warning: docs for function which may panic missing `# Panics` section --> bin/src/modules/archive.rs:5:1 | 5 | pub fn release(ctx: &Context) -> Result<(), Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: first possible panic found here --> bin/src/modules/archive.rs:24:24 | 24 | let path = path | ________________________^ 25 | | .strip_prefix(ctx.out_folder()) 26 | | .expect("We are in the HEMTT folder, the prefix should always exist") | |_____________________________________________________________________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_panics_doc
docs for function returning `Result` missing `# Errors` section: bin/src/context.rs#L24
warning: docs for function returning `Result` missing `# Errors` section --> bin/src/context.rs:24:5 | 24 | pub fn new(root: PathBuf, folder: &str) -> Result<Self, Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
docs for function which may panic missing `# Panics` section: bin/src/context.rs#L24
warning: docs for function which may panic missing `# Panics` section --> bin/src/context.rs:24:5 | 24 | pub fn new(root: PathBuf, folder: &str) -> Result<Self, Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: first possible panic found here --> bin/src/context.rs:41:13 | 41 | / root.components() 42 | | .skip(2) 43 | | .collect::<PathBuf>() 44 | | .to_str() 45 | | .unwrap() | |_________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_panics_doc
docs for function returning `Result` missing `# Errors` section: bin/src/commands/script.rs#L36
warning: docs for function returning `Result` missing `# Errors` section --> bin/src/commands/script.rs:36:1 | 36 | pub fn execute(matches: &ArgMatches) -> Result<(), Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
docs for function which may panic missing `# Panics` section: bin/src/commands/script.rs#L36
warning: docs for function which may panic missing `# Panics` section --> bin/src/commands/script.rs:36:1 | 36 | pub fn execute(matches: &ArgMatches) -> Result<(), Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: first possible panic found here --> bin/src/commands/script.rs:64:16 | 64 | let name = matches | ________________^ 65 | | .get_one::<String>("name") 66 | | .expect("name to be set as required"); | |_____________________________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_panics_doc
docs for function returning `Result` missing `# Errors` section: bin/src/commands/release.rs#L28
warning: docs for function returning `Result` missing `# Errors` section --> bin/src/commands/release.rs:28:1 | 28 | pub fn execute(matches: &ArgMatches) -> Result<(), Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
docs for function returning `Result` missing `# Errors` section: bin/src/commands/new.rs#L21
warning: docs for function returning `Result` missing `# Errors` section --> bin/src/commands/new.rs:21:1 | 21 | pub fn execute(matches: &ArgMatches) -> Result<(), Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
docs for function which may panic missing `# Panics` section: bin/src/commands/new.rs#L21
warning: docs for function which may panic missing `# Panics` section --> bin/src/commands/new.rs:21:1 | 21 | pub fn execute(matches: &ArgMatches) -> Result<(), Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: first possible panic found here --> bin/src/commands/new.rs:26:16 | 26 | let name = matches | ________________^ 27 | | .get_one::<String>("name") 28 | | .expect("name to be set as required"); | |_____________________________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_panics_doc
docs for function returning `Result` missing `# Errors` section: bin/src/commands/launch.rs#L35
warning: docs for function returning `Result` missing `# Errors` section --> bin/src/commands/launch.rs:35:1 | 35 | pub fn execute(matches: &ArgMatches) -> Result<(), Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
docs for function which may panic missing `# Panics` section: bin/src/commands/launch.rs#L35
warning: docs for function which may panic missing `# Panics` section --> bin/src/commands/launch.rs:35:1 | 35 | pub fn execute(matches: &ArgMatches) -> Result<(), Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: first possible panic found here --> bin/src/commands/launch.rs:43:25 | 43 | let launch_config = matches | _________________________^ 44 | | .get_one::<String>("config") 45 | | .expect("a config to be set"); | |_____________________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_panics_doc = note: `#[warn(clippy::missing_panics_doc)]` implied by `#[warn(clippy::pedantic)]`
docs for function returning `Result` missing `# Errors` section: bin/src/commands/dev.rs#L45
warning: docs for function returning `Result` missing `# Errors` section --> bin/src/commands/dev.rs:45:1 | 45 | pub fn execute(matches: &ArgMatches, launch_optionals: &[String]) -> Result<Context, Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
docs for function returning `Result` missing `# Errors` section: bin/src/commands/build.rs#L36
warning: docs for function returning `Result` missing `# Errors` section --> bin/src/commands/build.rs:36:1 | 36 | pub fn execute(matches: &ArgMatches, executor: &mut Executor) -> Result<(), Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc note: the lint level is defined here --> bin/src/lib.rs:2:9 | 2 | #![warn(clippy::pedantic)] | ^^^^^^^^^^^^^^^^ = note: `#[warn(clippy::missing_errors_doc)]` implied by `#[warn(clippy::pedantic)]`
unused import: `path::Path`: bin/src/config/project/version.rs#L1
warning: unused import: `path::Path` --> bin/src/config/project/version.rs:1:29 | 1 | use std::{mem::MaybeUninit, path::Path}; | ^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default
this match arm has an identical body to another arm: libs/preprocessor/src/processor/directives.rs#L94
warning: this match arm has an identical body to another arm --> libs/preprocessor/src/processor/directives.rs:94:13 | 94 | (_, false) => { | ^--------- | | | _____________help: try merging the arm patterns: `(_, false) | ("pragma", _)` | | 95 | | self.skip_to_after_newline(stream, None); 96 | | Ok(()) 97 | | } | |_____________^ | = help: or try changing either arm body note: other arm here --> libs/preprocessor/src/processor/directives.rs:86:13 | 86 | / ("pragma", _) => { 87 | | // TODO: hemtt pragma 88 | | self.skip_to_after_newline(stream, None); 89 | | Ok(()) 90 | | } | |_____________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_same_arms note: the lint level is defined here --> libs/preprocessor/src/lib.rs:2:9 | 2 | #![warn(clippy::pedantic)] | ^^^^^^^^^^^^^^^^ = note: `#[warn(clippy::match_same_arms)]` implied by `#[warn(clippy::pedantic)]`
this function has too many lines (101/100): libs/common/src/reporting/processed.rs#L44
warning: this function has too many lines (101/100) --> libs/common/src/reporting/processed.rs:44:5 | 44 | / pub fn new( 45 | | output: Vec<Output>, 46 | | usage: HashMap<Position, Vec<Position>>, 47 | | declarations: HashMap<Position, Position>, ... | 150 | | Ok(processed) 151 | | } | |_____^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_lines note: the lint level is defined here --> libs/common/src/lib.rs:2:9 | 2 | #![warn(clippy::pedantic)] | ^^^^^^^^^^^^^^^^ = note: `#[warn(clippy::too_many_lines)]` implied by `#[warn(clippy::pedantic)]`
fields `declarations` and `usage` are never read: libs/common/src/reporting/processed.rs#L25
warning: fields `declarations` and `usage` are never read --> libs/common/src/reporting/processed.rs:25:5 | 13 | pub struct Processed { | --------- fields in this struct ... 25 | declarations: HashMap<Position, Position>, | ^^^^^^^^^^^^ ... 29 | usage: HashMap<Position, Vec<Position>>, | ^^^^^ | = note: `Processed` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis = note: `#[warn(dead_code)]` on by default
docs for function which may panic missing `# Panics` section: bin/src/modules/new/license.rs#L9
warning: docs for function which may panic missing `# Panics` section --> bin/src/modules/new/license.rs:9:5 | 9 | pub fn select(author: &str) -> Option<String> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: first possible panic found here --> bin/src/modules/new/license.rs:21:25 | 21 | let selection = dialoguer::Select::new() | _________________________^ 22 | | .with_prompt("Select a license") 23 | | .items(&licenses) 24 | | .default(0) 25 | | .interact() 26 | | .unwrap(); | |_____________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_panics_doc
docs for function returning `Result` missing `# Errors` section: bin/src/modules/pbo.rs#L30
warning: docs for function returning `Result` missing `# Errors` section --> bin/src/modules/pbo.rs:30:1 | 30 | pub fn build(ctx: &Context, collapse: Collapse) -> Result<(), Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
docs for function returning `Result` missing `# Errors` section: bin/src/modules/hook/mod.rs#L113
warning: docs for function returning `Result` missing `# Errors` section --> bin/src/modules/hook/mod.rs:113:5 | 113 | pub fn run_file(ctx: &Context, name: &str) -> Result<(), Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
docs for function returning `Result` missing `# Errors` section: bin/src/modules/hook/mod.rs#L72
warning: docs for function returning `Result` missing `# Errors` section --> bin/src/modules/hook/mod.rs:72:5 | 72 | pub fn run_folder(self, ctx: &Context, name: &str, vfs: bool) -> Result<(), Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
docs for function which may panic missing `# Panics` section: bin/src/modules/hook/mod.rs#L72
warning: docs for function which may panic missing `# Panics` section --> bin/src/modules/hook/mod.rs:72:5 | 72 | pub fn run_folder(self, ctx: &Context, name: &str, vfs: bool) -> Result<(), Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: first possible panic found here --> bin/src/modules/hook/mod.rs:103:21 | 103 | file.file_name().to_str().expect("Invalid file name") | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_panics_doc
docs for function returning `Result` missing `# Errors` section: bin/src/modules/hook/mod.rs#L17
warning: docs for function returning `Result` missing `# Errors` section --> bin/src/modules/hook/mod.rs:17:1 | 17 | pub fn scope(ctx: &Context, vfs: bool) -> Result<Scope, Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
docs for function returning `Result` missing `# Errors` section: bin/src/modules/archive.rs#L5
warning: docs for function returning `Result` missing `# Errors` section --> bin/src/modules/archive.rs:5:1 | 5 | pub fn release(ctx: &Context) -> Result<(), Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
docs for function which may panic missing `# Panics` section: bin/src/modules/archive.rs#L5
warning: docs for function which may panic missing `# Panics` section --> bin/src/modules/archive.rs:5:1 | 5 | pub fn release(ctx: &Context) -> Result<(), Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: first possible panic found here --> bin/src/modules/archive.rs:24:24 | 24 | let path = path | ________________________^ 25 | | .strip_prefix(ctx.out_folder()) 26 | | .expect("We are in the HEMTT folder, the prefix should always exist") | |_____________________________________________________________________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_panics_doc
docs for function returning `Result` missing `# Errors` section: bin/src/context.rs#L24
warning: docs for function returning `Result` missing `# Errors` section --> bin/src/context.rs:24:5 | 24 | pub fn new(root: PathBuf, folder: &str) -> Result<Self, Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
docs for function which may panic missing `# Panics` section: bin/src/context.rs#L24
warning: docs for function which may panic missing `# Panics` section --> bin/src/context.rs:24:5 | 24 | pub fn new(root: PathBuf, folder: &str) -> Result<Self, Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: first possible panic found here --> bin/src/context.rs:41:13 | 41 | / root.components() 42 | | .skip(2) 43 | | .collect::<PathBuf>() 44 | | .to_str() 45 | | .unwrap() | |_________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_panics_doc
docs for function returning `Result` missing `# Errors` section: bin/src/commands/script.rs#L36
warning: docs for function returning `Result` missing `# Errors` section --> bin/src/commands/script.rs:36:1 | 36 | pub fn execute(matches: &ArgMatches) -> Result<(), Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
docs for function which may panic missing `# Panics` section: bin/src/commands/script.rs#L36
warning: docs for function which may panic missing `# Panics` section --> bin/src/commands/script.rs:36:1 | 36 | pub fn execute(matches: &ArgMatches) -> Result<(), Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: first possible panic found here --> bin/src/commands/script.rs:64:16 | 64 | let name = matches | ________________^ 65 | | .get_one::<String>("name") 66 | | .expect("name to be set as required"); | |_____________________________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_panics_doc
docs for function returning `Result` missing `# Errors` section: bin/src/commands/release.rs#L28
warning: docs for function returning `Result` missing `# Errors` section --> bin/src/commands/release.rs:28:1 | 28 | pub fn execute(matches: &ArgMatches) -> Result<(), Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
docs for function returning `Result` missing `# Errors` section: bin/src/commands/new.rs#L21
warning: docs for function returning `Result` missing `# Errors` section --> bin/src/commands/new.rs:21:1 | 21 | pub fn execute(matches: &ArgMatches) -> Result<(), Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
docs for function which may panic missing `# Panics` section: bin/src/commands/new.rs#L21
warning: docs for function which may panic missing `# Panics` section --> bin/src/commands/new.rs:21:1 | 21 | pub fn execute(matches: &ArgMatches) -> Result<(), Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: first possible panic found here --> bin/src/commands/new.rs:26:16 | 26 | let name = matches | ________________^ 27 | | .get_one::<String>("name") 28 | | .expect("name to be set as required"); | |_____________________________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_panics_doc
docs for function returning `Result` missing `# Errors` section: bin/src/commands/launch.rs#L35
warning: docs for function returning `Result` missing `# Errors` section --> bin/src/commands/launch.rs:35:1 | 35 | pub fn execute(matches: &ArgMatches) -> Result<(), Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
docs for function which may panic missing `# Panics` section: bin/src/commands/launch.rs#L35
warning: docs for function which may panic missing `# Panics` section --> bin/src/commands/launch.rs:35:1 | 35 | pub fn execute(matches: &ArgMatches) -> Result<(), Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: first possible panic found here --> bin/src/commands/launch.rs:43:25 | 43 | let launch_config = matches | _________________________^ 44 | | .get_one::<String>("config") 45 | | .expect("a config to be set"); | |_____________________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_panics_doc = note: `#[warn(clippy::missing_panics_doc)]` implied by `#[warn(clippy::pedantic)]`
docs for function returning `Result` missing `# Errors` section: bin/src/commands/dev.rs#L45
warning: docs for function returning `Result` missing `# Errors` section --> bin/src/commands/dev.rs:45:1 | 45 | pub fn execute(matches: &ArgMatches, launch_optionals: &[String]) -> Result<Context, Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
docs for function returning `Result` missing `# Errors` section: bin/src/commands/build.rs#L36
warning: docs for function returning `Result` missing `# Errors` section --> bin/src/commands/build.rs:36:1 | 36 | pub fn execute(matches: &ArgMatches, executor: &mut Executor) -> Result<(), Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc note: the lint level is defined here --> bin/src/lib.rs:2:9 | 2 | #![warn(clippy::pedantic)] | ^^^^^^^^^^^^^^^^ = note: `#[warn(clippy::missing_errors_doc)]` implied by `#[warn(clippy::pedantic)]`
unused import: `path::Path`: bin/src/config/project/version.rs#L1
warning: unused import: `path::Path` --> bin/src/config/project/version.rs:1:29 | 1 | use std::{mem::MaybeUninit, path::Path}; | ^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default
this match arm has an identical body to another arm: libs/preprocessor/src/processor/directives.rs#L94
warning: this match arm has an identical body to another arm --> libs/preprocessor/src/processor/directives.rs:94:13 | 94 | (_, false) => { | ^--------- | | | _____________help: try merging the arm patterns: `(_, false) | ("pragma", _)` | | 95 | | self.skip_to_after_newline(stream, None); 96 | | Ok(()) 97 | | } | |_____________^ | = help: or try changing either arm body note: other arm here --> libs/preprocessor/src/processor/directives.rs:86:13 | 86 | / ("pragma", _) => { 87 | | // TODO: hemtt pragma 88 | | self.skip_to_after_newline(stream, None); 89 | | Ok(()) 90 | | } | |_____________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_same_arms note: the lint level is defined here --> libs/preprocessor/src/lib.rs:2:9 | 2 | #![warn(clippy::pedantic)] | ^^^^^^^^^^^^^^^^ = note: `#[warn(clippy::match_same_arms)]` implied by `#[warn(clippy::pedantic)]`
this function has too many lines (101/100): libs/common/src/reporting/processed.rs#L44
warning: this function has too many lines (101/100) --> libs/common/src/reporting/processed.rs:44:5 | 44 | / pub fn new( 45 | | output: Vec<Output>, 46 | | usage: HashMap<Position, Vec<Position>>, 47 | | declarations: HashMap<Position, Position>, ... | 150 | | Ok(processed) 151 | | } | |_____^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_lines note: the lint level is defined here --> libs/common/src/lib.rs:2:9 | 2 | #![warn(clippy::pedantic)] | ^^^^^^^^^^^^^^^^ = note: `#[warn(clippy::too_many_lines)]` implied by `#[warn(clippy::pedantic)]`
fields `declarations` and `usage` are never read: libs/common/src/reporting/processed.rs#L25
warning: fields `declarations` and `usage` are never read --> libs/common/src/reporting/processed.rs:25:5 | 13 | pub struct Processed { | --------- fields in this struct ... 25 | declarations: HashMap<Position, Position>, | ^^^^^^^^^^^^ ... 29 | usage: HashMap<Position, Vec<Position>>, | ^^^^^ | = note: `Processed` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis = note: `#[warn(dead_code)]` on by default