AUR systemd-cron-next compile error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
error[E0432]: unresolved imports `log::LogMetadata`, `log::LogRecord`, `log::LogLevel`, `log::MaxLogLevelFilter`, `log::LogLevelFilter` | |
--> /home/aaron/.cargo/registry/src/github.com-1ecc6299db9ec823/kernlog-0.2.1/src/lib.rs:54:16 | |
| | |
54 | use log::{Log, LogMetadata, LogRecord, LogLevel, MaxLogLevelFilter, LogLevelFilter, SetLoggerError}; | |
| ^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ no `LogLevelFilter` in the root | |
| | | | | | |
| | | | no `MaxLogLevelFilter` in the root | |
| | | no `LogLevel` in the root | |
| | no `LogRecord` in the root | |
| no `LogMetadata` in the root | |
help: a similar name exists in the module | |
| | |
54 | use log::{Log, Metadata, LogRecord, LogLevel, MaxLogLevelFilter, LogLevelFilter, SetLoggerError}; | |
| ^^^^^^^^ | |
help: a similar name exists in the module | |
| | |
54 | use log::{Log, LogMetadata, Record, LogLevel, MaxLogLevelFilter, LogLevelFilter, SetLoggerError}; | |
| ^^^^^^ | |
help: a similar name exists in the module | |
| | |
54 | use log::{Log, LogMetadata, LogRecord, LogLevel, MaxLogLevelFilter, LevelFilter, SetLoggerError}; | |
| ^^^^^^^^^^^ | |
error[E0046]: not all trait items implemented, missing: `flush` | |
--> /home/aaron/.cargo/registry/src/github.com-1ecc6299db9ec823/kernlog-0.2.1/src/lib.rs:101:1 | |
| | |
101 | impl Log for KernelLog { | |
| ^^^^^^^^^^^^^^^^^^^^^^ missing `flush` in implementation | |
| | |
= note: `flush` from trait: `fn(&Self)` | |
error[E0308]: mismatched types | |
--> /home/aaron/.cargo/registry/src/github.com-1ecc6299db9ec823/kernlog-0.2.1/src/lib.rs:157:21 | |
| | |
157 | log::set_logger(KernelLog::init) | |
| ^^^^^^^^^^^^^^^ | |
| | | |
| expected reference, found fn item | |
| help: consider borrowing here: `&KernelLog::init` | |
| | |
= note: expected type `&'static (dyn log::Log + 'static)` | |
found type `fn([type error]) -> std::boxed::Box<(dyn log::Log + 'static)> {KernelLog::init}` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment