]> git.proxmox.com Git - pve-installer.git/commit
fetch answers: avoid utils module
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 19 Apr 2024 12:52:33 +0000 (14:52 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 22 Apr 2024 12:31:37 +0000 (14:31 +0200)
commit412871c90a1f8fec9e1a27be8476f03d96629193
tree22dea0ec7ed13f3081f86d0ad57d43361cd86142
parenta101adee92dcb33a70ced89a0820ad5b418c801b
fetch answers: avoid utils module

utils/helpers/tools are all modules with a way to generic name and
will be misused as dumping ground for basically everything.

Just move the helper to where they are used and drop some bogus
methods like get_answer_file, which neither searches nor gets an
answer file (type) but just is a plain and slightly over engineered
std::fs::read_to_string

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
proxmox-fetch-answer/src/fetch_plugins/http.rs
proxmox-fetch-answer/src/fetch_plugins/mod.rs
proxmox-fetch-answer/src/fetch_plugins/partition.rs
proxmox-fetch-answer/src/fetch_plugins/utils/mod.rs [deleted file]
proxmox-fetch-answer/src/fetch_plugins/utils/post.rs [deleted file]
proxmox-fetch-answer/src/main.rs