Skip to content

Instantly share code, notes, and snippets.

@amasover
Created December 10, 2019 23:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amasover/ce6f432afeb1a3ca98772f6dbb58fa9c to your computer and use it in GitHub Desktop.
Save amasover/ce6f432afeb1a3ca98772f6dbb58fa9c to your computer and use it in GitHub Desktop.
AUR systemd-cron-next compile error
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